QUESTION IMAGE
Question
question 10
which data structure is ordered and immutable?
list
tuple
dict
set
Brief Explanations
- A list is ordered but mutable (can be changed).
- A tuple is ordered and immutable (cannot be changed).
- A dict (dictionary) is unordered (in Python versions before 3.7; in 3.7+ insertion - order is maintained but it's still mutable in terms of key - value pairs).
- A set is unordered and mutable.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
tuple