The Python You Need

The Python You Need: Lists: Keeping Things in Order, Dictionaries: Looking Things Up by Name, Parameters and Return Values.

Updated

  1. Lists: Keeping Things in Order (Novice): A list keeps many values in order under one name, so you can read any item by its index, counting from 0 at the front or from -1 at the back, add, insert and remove items, and check whether a value is there with in.
  2. 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.
  3. Parameters and Return Values (Novice): Parameters let a function work on whatever values each call hands it, and return hands a result back to the code that called it, which is different from printing it and gives None when a function returns nothing.