7.4.1. Ch07 Preview Questions#

Answer these questions before class to prime yourself for the chapter content.

7.4.1.1. 1. List vs. Dictionary#

You have a collection of student names and their exam scores. Which data structure would you use — a list or a dictionary — and why?

Your answer here.

7.4.1.2. 2. Keys and Values#

In a Python dictionary, what are the constraints on keys? What about values?

Your answer here.

7.4.1.3. 3. Records and Lookup#

A student record has a name, major, and GPA. What would make a dictionary more useful than a list for this data?

Your answer here.