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