what's wrong with this code? I wrote this in python 3.6 IDLE. i get a syntax error.
>>> age = int(input("How old are you: "))
>>> if age <= 18:
print("Thanks for shopping!")
elif age in range(16, 18):
print("I'm not allowed to sell you strong alholic beverages!")
else:
print("I'm not allowed to sell you alcohol, nor cigarettes")
Aucun commentaire:
Enregistrer un commentaire