Lesson 20: The quest for a better map

Outline:

  1. Questions?
  2. Recap: list operations and methods (W3)
  3. Python’s dict type
    • abstraction
    • a better Map
  4. Python dict practice: Exercise 2

Explore after class:

  1. More practice working with dictionaries
    • try writing a function to find the key in the dictionary corresponding to the highest value
  2. Runestone:

What’s next

Upcoming events/assessments:

  • Assignment 7 (your last one!) is now available
  • Quiz 4 will be next Friday

What you should do now:

  • The readings (see below)
  • Submit Assignment 6 by 10pm today if you’re using a token
  • Keep working on your project, incrementally refactoring it

Reading assignment (to be completed by the next class):

  • Zelle section 9.5 (pp. 285–289)
  • Assignment 7 (due next Thursday at 10pm)