Working with Python dictionaries: a cheat sheet
Accessing, editing and looping through dictionary items
Published in
4 min readMar 14, 2021
Some basics
Dictionaries in Python are a collection of key-value pairs — meaning every item in the dictionary has a key and an associated value.
If we want to write down prices of some items in a grocery store, normally we will note…