Question discussion

[Added later – this question is not part of the original paper]Which of the following data types in Python is immutable?

359283Medium DSSSB TGT Computer Science 0 replies 0 views
0

[Added later – this question is not part of the original paper]

Which of the following data types in Python is immutable?

  • Alist
  • Bdict
  • Ctuple
  • Dset
Correct answer: C

Explanation

A tuple cannot be changed after creation. Lists, dictionaries and sets are mutable.

Discussion 0

Nobody has replied yet. Start the discussion!