Quiz 7: Mutability, Memory Diagrams, and Nested Loops
Learning Goals
Students should be able to:
- Define mutable and immutable
- Give examples of mutable and immutable objects in Python
- Analyze code to show how objects adhere to the notion of mutability
- Draw a memory diagram that correctly depicts the result of Python code using lists (possibly nested) in memory
- Implement accumulation patterns requiring nested for loops in Python to translate accumulative algorithms from English
- Predict the effect of indexing nested list structures
- Write indexes for specific elements in nested list structures
- Implement accumulation patterns requiring nested for loops in Python to translate accumulative algorithms from English
Study Guide
Note: memory diagrams will be on this week's quiz.
Blank (fill in your solutions)
Solutions
After your quiz is graded by instructors, you will get an email from Gradescope. Solutions for individual quiz questions are provided in the Gradescope rubric.