I don't even know what the problem is. As far as I can see, there is no reason this should be happening. No matter what you input, badrating()
always executes. Even negative numbers, or numbers larger than 10, or text.
rating=input("How do you rate my coding? (1-10) ")
...
if rating=="1" or "2" or "3" or "4":
badrating()
elif rating=="5" or "6" or "7":
mehrating()
elif rating=="8" or "9" or "10":
goodrating()
Aucun commentaire:
Enregistrer un commentaire