Let's compare that to our previous solution without dictionaries!
Create a text-based contact list that allows you to store first name, last name and room # →
It should support the following functionality:
The primary interface will be a prompt that will continually ask the user for a letter (a, p, f or q)…
Finding a contact:
How about using a list of dictionaries to store contacts?
Here's an example with one contact:
We can break down the code into smaller chunks of functionality:
We can use the previous functions in a while loop that drives the interaction with the user:
</section>