lab_weather/list_or_dict.md

415 B

List or dict?

For each use case below, explain whether it would be better to store the data in a list or in a dict. (Not all of these have a clear answer, so justify yours.)

Items you need to buy at the grocery store

Your friends' birthdays

Keeping track of RSVPs to a party

Your personal movie ratings

Temperature readings from a sensor

Messages in an email inbox

Git commits