CS 106A Python Course Reader


These handouts were written by and very kindly shared with us by Nick Parlante. Material might be presented in a slightly different order to the syllabus this quarter and they are not required reading, but we hope they are a useful resource.

  1. Introduction
  2. Style
  3. Loops
  4. range
  5. If statements
  6. Booleans
  7. Functions
  8. Variables
  9. Math
  10. Command Line
  11. The Python Interpreter
  12. main
  13. Lists
  14. Strings
  15. File Reading
  16. print
  17. Dicts
  18. Copying
  19. Sorting
  20. Tuples
  21. map & lambda
  22. List Comprehensions