When I make a choice, the code is executed normally. But when I want to redo the choice later nothing happens. Example: I choose 1. The code is executed. I come back to the menu. I want to rechose 1, but nothing happens and the menu is displayed again.
version : Python 3.3.0
menu = True
while menu:
try:
c = 0
c = int(input("Choose 1,2,3,4,5 or 6"))
except:
print("Veuillez choisir un chiffre entre 1 et 6!")
if c == 1:
c = 0
#some code
elif c == 2:
c = 0
#some code
elif c == 3:
c = 0
#some code
elif c == 4:
c = 0
#some code
elif c == 5:
c = 0
#some code
elif c == 6:
menu = False
else:
print("Veuillez choisir un chiffre entre 1 et 6!")