Q:

How to create a menu or directory?

How do I make a simple Menu/Directory using Python? I would like to have letters that the user would press to do tasks, and when they enter the letter after the prompt, the task is done... for example:
A. Create Username 
B. Edit Username 
C. Exit
Choice: 
And then all the user has to do is enter one of the letters after the prompt.

A:

A (very) basic approach would be something like this:
print "A. Create Username"
print "B. Edit Username"
input = raw_input("Enter your choice")

if input == "A":
    print "A was given" 
if input == "B":
    print "B was given"

