Advertisement
Guest User

test.py

a guest
Aug 22nd, 2020
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.97 KB | None | 0 0
  1. import sys
  2. import os
  3. import math
  4. i = 1
  5. fatal = "FATAL"
  6. ex = "Such symbol does not exists!"
  7. er = "You denial from upgrade!"
  8. succ = "You successfully bought upgrade!"
  9. answer = "Please choose option Y or N"
  10. up = "[HINT]You should buy upgrade, this upgrade add +2 to your balance"
  11. add = "[SUCCESSFULLY]You added 1 coin!"
  12. wl = "[HINT]So that add +1 money to your balance!"
  13. balance = 0
  14. coins = "coins"
  15. strbl = "CASH:"
  16. while i <= 1:
  17.     print(wl)
  18.     plus = input("")
  19.     if plus == "+":
  20.         print(add)
  21.         balance = balance + 1
  22.         print(strbl, balance, coins)
  23.     else:
  24.         print(ex)
  25.         break
  26.         sys.exit()
  27.         if balance >= 10:
  28.             print(up)
  29.           print(answer)
  30.           quest = input("")
  31.             if quest == "Y":
  32.                 print(succ)
  33.                 balance = balance - 10
  34.                 print(balance)             
  35.              #balance = balance + 2
  36.                 break
  37.            else:
  38.                 if quest == "N":
  39.              print(er)
  40.                 continue
  41.            
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement