Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
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 thecollections
module that works like adict
but 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