Dictionaries in Python

Dictionaries in Python: Dictionaries: Looking Things Up by Name, Looping Through Dictionaries and Nested Data.

Updated

  1. Dictionaries: Looking Things Up by Name (Novice): A dictionary stores each value under a key you choose, so a program finds a value by its name instead of its position, and adds, changes and removes entries as the data changes.
  2. Looping Through Dictionaries and Nested Data (Apprentice): A for loop goes through a dictionary's keys, items(), keys() and values() give its pairs, its keys or its values, and lists of dictionaries and dictionaries of lists hold whole tables of data, the shape CSV files and web APIs give you.