QuestionQ17

VerifiedPython/PyEZ

Which two statements about Python tuples are correct?

Choose two
Explanation

In Python, a tuple is an immutable sequence type, meaning once it is created, its contents cannot be changed, added to, or removed—this is what distinguishes it from a list. Tuples are created using parentheses, such as my_tuple = (1, 2, 3), whereas square brackets [] are used to define lists, which are mutable.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!