So below is my first attempt at using user input, but I can't figure out how to get the input (at the bottom) to plug into my function definitions. I have no proper python training and am attempting to learn on my own with some books. I would appreciate any tips or suggestions.
#!/usr/bin/python def dispatch(choice): if choice == 'A': functionA() elif choice == 'B': functionB() elif choice == 'C': functionC() else: print "An Invalid Choice" def functionA(): print "WRONG!" def functionB(): print "CORRECT!" def functionC(): print "WRONG!" choice = raw_input ("A, B, or C\n") print "Your answer is", choice