Photo by Eddy Klaus on Unsplash

Working with Python dictionaries: a cheat sheet

Accessing, editing and looping through dictionary items

--

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…

--

--