Jan-20-2020, 12:36 AM
Hey guys thanks for all the help this is the finnished program
bal = float(0) while 1==1: float(bal) play_int = input("please enter wtd for withdraw and enter dep for deposit or enter bal to see your balance or enter end to end the program: \n ") if play_int == "dep": while 1==1: try: dep = float(input("please enter the amount you would like to deposit: ")) if dep < 0: print('\n please enter a positive number \n ') break bal = float(dep) + float(bal) print("you have deposited $"+ str(dep)) print(f'{bal:.2f} \n') float(bal) break except ValueError: print(" you have entered a letter or a decimal please enter a whole number \n") elif play_int == "wtd": while 1==1: try: wtd = float(input("please enter the amount you would like to withdraw : \n ")) if wtd < 0: print("please enter a positive number \n ") break bal = float(bal) - float(wtd) print("you have withdrawn " + str(wtd)) print(f'{bal:.2f} \n') float(bal) break except ValueError: print("you have entered a letter or a decimal please enter a whole number \n ") elif play_int == "bal": str(bal) print(f'{bal:.2f}') float(bal) elif play_int == "end": print("ending program") print(".") print(".") print(".") print(".") print(".") print(".") print(".") print(".") print(".") print(".") print(".") print("program ended") break elif play_int == "crash": while 1==1: print("...................................................................................................................................................................")
~~ UwU