Bummer! You have been redirected as the page you requested could not be found.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Using Databases in Python!
You have completed Using Databases in Python!
We can start to get into the actual behavior of our application now. We'll use an OrderedDict to hold onto our choices and a nifty trick to print out the options to the user and then run their selected function.
New terms
-
OrderedDict- a handy container from thecollectionsmodule that works like adictbut maintains the order that keys are added -
.__doc__- a magic variable that holds the docstring of a function, method, or class
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up