List vs Tuple
Multiple Choice Beginner
Question
What is the key difference between a list and a tuple?
Hint
Tuples use (), lists use [].
Explanation
Lists [1,2,3] are mutable — you can add, remove, or change elements. Tuples (1,2,3) are immutable — once created, they cannot be modified. Tuples are more memory-efficient and can be used as dictionary keys. Use tuples for fixed collections (coordinates, RGB values) and lists for collections that change.
Related Resources
Related Lessons
- Data Types
Learn Python data types.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.