Advertisement
kaly1

Simple Relational Ops

Feb 19th, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. print("Hi There! I'm here to help you out with how many games you could buy")
  2. money = int(input("How much money do you have saved up?"))
  3. if money < 60:
  4. print("I think you need to save up more as currently", money,"isn't enough to buy a new game")
  5. print("Bye!")
  6. elif money//60 <= 3:
  7. print("OK! you can buy",money//60,"game(s) and you'll have",money%60,"EGP left over")
  8. elif money//60 > 3 and money//60 < 5:
  9. print("OK! you can buy",money//60,"games and you'll have",money%60,"EGP left over")
  10. else:
  11. print("Wow! you have",money,"saved up! You can buy",money//60,"games and you'll have",money%60,"EGP left over")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement