Skip to content

Instantly share code, notes, and snippets.

@robrocker7
Created July 11, 2013 16:35
Show Gist options
  • Save robrocker7/5977026 to your computer and use it in GitHub Desktop.
Save robrocker7/5977026 to your computer and use it in GitHub Desktop.
print("Welcome to the Menu Generator 3000!")
print("To view your current menu('s), enter 'View'")
print("To create a new menu, enter 'New'")
print("To exit the Menu Generator 3000, enter 'Exit'")
def new_menu(x):
print("you may create 5 items in your menu...")
count = 5
x={}
while count != 0:
x[raw_input("Name item #" + str(count) + ": ")] = raw_input("enter your the value of this item: ")
count = count -1
print(x)
return True
def view_menu():
print("have not gotten this far..")
return False
operate = True
while operate == True:
command = raw_input("Main Menu: ").lower()
if command == 'new':
print("you typed new!")
y = raw_input("Name your menu: ")
new_menu(y)
elif command == 'view':
view_menu()
elif command == "exit":
print("you typed exit!")
break
else:
print("That is not a valid command!")
print("End of program!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment