Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- menu_list = open("menu.txt", "w+")
- print ("Your restaurant menu")
- menu_list.write("Your restaurant menu ")
- while True:
- menu = input ("Please enter your daily menu to the list ")
- menu_list.write(str(menu))
- #Can't find out how we can list the menues and costs on seperate lines in the text file
- price = int(input ("Please enter the price of the menu: "))
- menu_list.write(str(price))
- choice = input("Do you want to add another menu to the list? Yes/No ").lower()
- if choice == "no":
- break
- menu_list.close()
Add Comment
Please, Sign In to add comment