I tried to input 1 in the object code but the else
statement always executes even though my if statement is equal to 1 and evaluates to true:
intro = input("Welcome to Gazebo (Press Enter to continue)")
print ("Choose your menu (Type the number for the corresponding option)")
print ("1 - Starters ")
print ("2 - Main Menu ")
print ("3 - Sweets ")
print ("4 - Cold drinks ")
print ("5 - Juices ")
print ("6 - Ice Creams ")
menu = input("e ")
if menu == 1 :
print ("Choose your menu (Type the number for the corresponding option)")
print ("1 - Starters ")
print ("2 - Main Menu ")
print ("3 - Sweets ")
print ("4 - Cold drinks ")
print ("5 - Juices ")
print ("6 - Ice Creams ")
Str1 = input("Enter the corresponding number for the desired dish")
else :
print ("Bye")
Aucun commentaire:
Enregistrer un commentaire