Which statement about tuples and lists is correct in Python?
Correct answer
B. Tuples are immutable and generally faster; lists are mutable
6 views
B. Tuples are immutable and generally faster; lists are mutable
6 views
Tuples cannot be modified after creation, which makes them hashable if all items are hashable.
Asked in: Python Interview Tuples
https://docs.python.org/3/tutorial/datastructures.html#tuples-and-sequencesNot sure why the answer is B? Ask here and get an explanation.