Advertisement
Guest User

Which_prize1

a guest
Jan 12th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement