Python Forum
Getting my choices to display fro some reason it isnt working.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting my choices to display fro some reason it isnt working.
#1
choice = 0

while choice != QUIT:
    #Display menu & prompt user for choice
    print("\nChoose one of the following options")
    print("\t1. Display 10 ways to cut 500 calories")
    print("\t2. Generate next semester expected weight table")
    print("\t3. Quit")
    choice = int(input("option: "))


#Calories cutting options
if choice==1:
    print("\nTry these 10 ways to cut 500 calories every day...")
    print("*Swap your snack")
    print()
Reply


Messages In This Thread
Getting my choices to display fro some reason it isnt working. - by dgizzly - Oct-24-2022, 12:23 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Code isnt working abdullahali 5 3,513 Oct-01-2018, 02:31 AM
Last Post: Skaperen
  Homework Teacher isnt helping need some help randyearthchild 2 2,964 Nov-05-2017, 11:32 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020