I'm trying to make a simple menu where if you press one you get one option and if you press two you get a different one within if statements. Basically, an online order form if you were ordering girl scout cookies through an app and at the bottom it'll tell you how much you're buying and how much it'll all cost. I think I got the format down, but I can't get the variables to show up. Every time I hit '1' I get nothing when it's supposed to print something or move on to the next step.
Python:
#Define Variables
cont = input("Would you like to start?> (y/n)")
item_cnt = 0
order_total = 0
choice_1 = "Savannah"
choice_2 = "Thin Mints"
choice_3 = "Tagalongs"
# Input and process
print("Welcome!")
while cont.lower() == "y":
while True:
name = input("Who is this order for?>")
if len(name) < 1 or len(name) > 20:
print("name error: name must be between 1 and 20 characters.")
else:
break
print("Please choose your order based on the number.")
choice_1 = print("1. Savannah $3.50 per box.")
choice_2 = print("2. Thin Mints $3.50 per box.")
choice_3 = print("3. Tagalongs $5.00 per box.")
while True:
choice_1 = int(1)
while choice_1 () == "1":
while True:
choice_1 = int(1)
if 1:
print("You have chosen Savannah for $3.50 per box.")
else:
break
while True:
if 2:
print("You have chosen Thin Mints $3.50 per box.")
else:
break
while True:
if 3:
print("You have chosen Tagalongs $5.00 per box.")
else:
break