-1

I've looked all over Stackoverflow, for an answer to this question, but can't seem to find it. I am starting out in Python and I am attempting to make a simple quiz game. I want the player to be able to type the name of the menu they want to goto.

I have this so far:

print("Hello, and welcome to the Python Quiz.")
print("[START]")
print("[HELP]")
print("[ABOUT]")
print("[EXIT]")
menu = input("Type name of menu to navigate to corresponding menu. ")

if menu == "START":
    ...........

What comes next?

Gerhard
  • 22,678
  • 7
  • 27
  • 43

1 Answers1

0

I would define each menu as what it should print like

def help():
  print(option1)
  print(option2)
  print(option3)

then you can just do something like

if menu == "HELP":
  help()
elif menu == "START":
  start()
jacksoncyr
  • 31
  • 4