Dictionaries can be used in Python to make your code more efficient. For instance, in Lesson 10, you probably used a series of elif statements to choose the buzzer frequency that corresponded to a particular note. It may have looked something like this:
Lesson 13 – Dictionaries with the Finch
Modify your playNote() function from Lesson 10 to use the dictionary shown above. How does this function compare to your original one?
Add your own colors to the color dictionary shown above. Use this dictionary to write a program that lets the user enter a color name and then turns the Finch beak that color. Your program should check that the user has entered a valid color name and give them an error if needed.
Expand the dictionary above to link other characters to different movements of the Finch. Then use this dictionary to write a program that lets the user drive the Finch using the keyboard.