Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- import os
- import math
- i = 1
- fatal = "FATAL"
- ex = "Such symbol does not exists!"
- er = "You denial from upgrade!"
- succ = "You successfully bought upgrade!"
- answer = "Please choose option Y or N"
- up = "[HINT]You should buy upgrade, this upgrade add +2 to your balance"
- add = "[SUCCESSFULLY]You added 1 coin!"
- wl = "[HINT]So that add +1 money to your balance!"
- balance = 0
- coins = "coins"
- strbl = "CASH:"
- while i <= 1:
- print(wl)
- plus = input("")
- if plus == "+":
- print(add)
- balance = balance + 1
- print(strbl, balance, coins)
- else:
- print(ex)
- break
- sys.exit()
- if balance >= 10:
- print(up)
- print(answer)
- quest = input("")
- if quest == "Y":
- print(succ)
- balance = balance - 10
- print(balance)
- #balance = balance + 2
- break
- else:
- if quest == "N":
- print(er)
- continue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement