Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def which_prize(points):
- if points <= 50:
- return print ("Congratulations! You have won a wodden rabbit")
- elif points <= 150:
- return print("oh dear no prize, this time")
- elif points <= 180:
- return print("Congratulations! You have won a wafer-thin mint")
- else:
- return print("Congratulations! You have won a penguine")
- points = int(input("enter points: "))
- which_prize(points)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement