I'm trying to create a function in python that outputs a menu like this:
MENU
p) Play the matching penny game
q) Quit
What I've tried...
def display_menu(): print "###MENU###" print "p) Play the matching penny game" print "q) Quit" I want to call the function in a script and have the menu displayed, but it doesn't display in the shell nor does it throw an error. How do I go about doing this?
>>> display_menu()it should work.