Week 9: More Design, Files, and Lists of Lists

Week {weeknum} Goals

  • Perform I/O by reading from files rather than user input

  • Organize data records into lists of lists

  • Continue practicing top-down design (TDD)

  • Begin to evaluate searching

Week {weeknum} Code

  • bestInShow.txt: Dog show winner data file

  • colors.txt: A file containing the names of colors

  • fileDemo.py: An example of reading an entire file at once

  • guessing.py: A guessing game to help us think about searching

  • showContents.py: An example of reading a file one line at a time

  • winners.py: Practice program for reading data records into lists of lists