Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Hi There! I'm here to help you out with how many games you could buy")
- money = int(input("How much money do you have saved up?"))
- if money < 60:
- print("I think you need to save up more as currently", money,"isn't enough to buy a new game")
- print("Bye!")
- elif money//60 <= 3:
- print("OK! you can buy",money//60,"game(s) and you'll have",money%60,"EGP left over")
- elif money//60 > 3 and money//60 < 5:
- print("OK! you can buy",money//60,"games and you'll have",money%60,"EGP left over")
- else:
- 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