drinks = 5
if drinks <= 2:
print("Keep going buddy")
elif drinks == 3:
print("I believe you've had enough, sir")
else:
print("stop")
This was the code I was trying to run, and it keeps giving me a syntax error with the "else" and I don't know why.
Aucun commentaire:
Enregistrer un commentaire