daily pastebin goal
27%
SHARE
TWEET

Which_prize1

a guest Jan 12th, 2018 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def which_prize(points):
  2.     if points <= 50:
  3.         prize='Congratulations! You have won a wodden rabbit'
  4.     elif points >= 51 and points <= 150:
  5.         prize ='oh dear no prize, this time'
  6.     elif points >= 151 and points <= 180:
  7.          prize ='Congratulations! You have won a wafer-thin mint'
  8.     elif points >= 181 and points <= 200:
  9.         prize = 'Congratulations! You have won a penguine'
  10.     return(prize);
  11.  
  12. points = int(input("enter points: "))
  13. which_prize(points)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top