jeudi 4 mars 2021

whats wrong with the code???? if i enter 205 in points I want it to return "NO prize"

print("Enter Points")

points = int(input())

if points <= 50 :

prize = "wooden rabbit"

elif 151 <= points <= 180 : `

prize = "wafer thin"

elif points >= 181 :

prize == "penguin"

else:

print("no prize")

if prize:

result = "congrats you have won {}!".format(prize)

else:

result = "oh dear, NO"

print(result)

Aucun commentaire:

Enregistrer un commentaire