Which of the following is an immutable data type in Python?

Python Developer Easy

Python Developer — Easy

Which of the following is an immutable data type in Python?

Key points

  • Tuples are created using parentheses ()
  • Once a tuple is created, its values cannot be modified
  • Lists, dictionaries, and sets are mutable data types
  • Immutable data types are useful for storing constant values

Ready to go further?

Related questions