Question discussion

Which of the following Python data types is immutable?

1908Medium DSSSB TGT Computer Science 0 replies

Which of the following Python data types is immutable?

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

Explanation

A tuple cannot be changed after creation, whereas lists, dictionaries and sets can be modified in place.

Discussion 0

Nobody has replied yet. Start the discussion!