Phase: 3. Data Structures
Estimated Time: 1.5 hours
Milestone: No
Understand the critical distinction between mutable and immutable types in Python, and how this affects assignment, function calls, and data structure usage.
- Mutable types:
list,set,dict - Immutable types:
int,float,str,tuple,frozenset - How mutability affects assignment and function calls
- Why it matters for dict keys and set elements
- Memory/reference model explanation
- Identify which Python types are mutable and which are immutable
- Predict how mutability affects variable assignment
- Explain why mutable types cannot be dictionary keys or set elements
- Understand the memory/reference model
- Avoid mutability-related bugs in function arguments
- Modules 000–024