List vs tuple - what is the difference?
30-second answer: Lists can change, tuples cannot. Tuples can be dictionary keys and signal a fixed record.
Lists are mutable and tuples are immutable. Tuples are hashable when their contents are, so they can be dictionary keys or set members, and they signal "fixed record" to the reader.
Follow-up questions interviewers ask next
- Are tuples always faster than lists?
- Can a tuple hold a mutable object?