daily pastebin goal
74%
SHARE
TWEET

Which_prize

a guest Jan 12th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
Top