We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c90846 commit 53804ddCopy full SHA for 53804dd
lab-11/atm.py
@@ -30,7 +30,11 @@ def main_menu(id):
30
selection = int(input("Enter your selection here: "))
31
if (selection == 1):
32
print(eval(f"account_{id}.get_balance()"))
33
-
+ else if(selection == 2):
34
+ withdraw_amount = float(prompt("Enter the amount of money you would like to withdraw: "))
35
+ eval(f"account_{id}.withdraw({withdraw_amount})")
36
+ print(f"${withdraw_amount} was withdrawed successfully")
37
+
38
39
40
get_id()
0 commit comments