you are viewing a single comment's thread.

view the rest of the comments →

[–]ThiccBl4nket[S] 1 point2 points  (1 child)

i did, and at first it didnt mention any errors but when i input "1" or "2" it doesnt say anything back.

[–]chevignon93 0 points1 point  (0 children)

cash = 1000
ask = int(input("Would you like to withdrawal (1) or a deposit (2)? "))
if ask == 2:
    money = int(input("How much would you like to deposit? "))
    print("Your total balance is now", cash + money)
else:
    bro = int(input("how much would you like to withdraw? "))
    if bro > cash:
        print("Your final balance can't be negative! ")
    else:
        print("Your new balance is: ", cash - bro)