bank = 1000
coins = 0
deposit = 0
start = True
#menu#
while start == True:
word = input("What would you like to do, Enter a key word <b> for balance, <c> for coins, <d> for deposit, or <p> to start playing: ")
#deposit#
if word == "d" :
deposit = input("Enter how much money you want to deposit. You have " + str(bank) + " in your bank : ")
if int(deposit) < int(bank):
deposit = int(deposit)
coins = coins + deposit
bank = bank - deposit
print("You have "+ str(coins) + " coins after depositing")
else:
while int(deposit) > int(bank):
deposit = input("You do not have enough, Enter how much money you want to deposit. You have " + str(bank) + " in your bank : ")
if int(deposit) < int(bank):
deposit = int(deposit)
coins = coins + deposit
bank = bank - deposit
print("You have "+ str(coins) + " coins after depositing")
elif int(deposit) == int(bank):
deposit = int(deposit)
coins = coins + deposit
bank = bank - deposit
print("You have "+ str(coins) + " coins after depositing")
elif word == "b" :
print("You have "+ str(bank) + " in your bank")
elif word == "c" :
print("You have "+ str(coins) + " in coins")
#Game started#
if word == "p":
start = False
print("You have started the game")
print("I will proceed to explain the rules of the game and then we can start to play")