Quiz 9: Dictionaries
Learning Goals
Students should be able to:
- Write literal dictionaries
- Write Python code to add, remove and overwrite key-value pairs
- Write code to iterate over dictionaries
- Write code to access dictionaries and appropriately choose the correct and efficient syntax for doing so
- Define ordered vs. unordered collections
- State what kinds of collection are ordered and unordered
- State that dictionaries are mutable
- Define key-value pair
- Design accumulation patterns using iteration and dictionaries
- Accumulate dictionaries using iteration
- Design an accumulation pattern using dictionaries to count data from another data structure such as a list
- Apply dictionaries to solve problems using real world data
- Correctly choose the appropriate data structure to solve a particular problem
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.