Advertisement
Guest User

Which_prize

a guest
Jan 12th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. def which_prize(points):
  2.     if points <= 50:
  3.         return print ("Congratulations! You have won a wodden rabbit")
  4.     elif  points <= 150:
  5.          return print("oh dear no prize, this time")
  6.     elif  points <= 180:
  7.         return print("Congratulations! You have won a wafer-thin mint")
  8.     else:
  9.         return print("Congratulations! You have won a penguine")
  10.    
  11. points = int(input("enter points: "))
  12. which_prize(points)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement