Quote (feanur @ Oct 8 2018 02:52pm)
The loop I've post is using a "while answer == True" condition. Doesn't it work ?
You can easily change some lines in that loop, if you want to display a specific message : "Do you wish to add another deposit?" or "Do you wish to add another debit?".
Just drop me a pm if there's a problem on that part.
Good luck.
It does! I copied it wrong. This is what i ended up with
initial = input("Welcome! Please enter your initial bank balance: ")
initial = int(initial)
answer = True
while answer == True :
print("\n Your balance is currently : $", initial)
answer = input("\n Do you want to make a deposit or debit (Y/N) ?")
if (answer == "Y") or (answer == "y"):
dep1 = input("Enter your deposit: ")
dep1 = int(dep1)
debit = int(input("Enter your debits: "))
debit = int(debit)
balance = float(dep1 - debit)
initial = initial + balance
answer = True
print("\n\nThanks! Your deposit was: $", dep1, "Your debit was: $",debit,)
print("\n Thanks, and goodbye !")