Unlike lists, tuples are _______ in Python, meaning they cannot be modified after they are created.
- Dynamic
- Immutable
- Mutable
- Static
Tuples in Python are immutable, which means their elements cannot be changed or modified after the tuple is created.
Loading...
Related Quiz
- A ____ algorithm guarantees to run in the same time (or space) for any input of the same size.
- Which built-in function can be used to create a set in Python?
- What is the primary use of a generator expression in Python?
- What does the finally block represent in Python's exception handling?
- You need to use a data structure as keys for a dictionary, and it must hold multiple items. Which one would you choose between lists and tuples?