Currently working on my first program and my Else statement isn't working in the following code:
info = input("<Y/N>")
if (info == "Y" or "y"):
print ("Calculating...")
else:
raise SystemExit
The program just continues to
print ("Calculating...")
even if the input isn't "Y" or "y"
Aucun commentaire:
Enregistrer un commentaire