We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentb06e294 commitb78abf4Copy full SHA for b78abf4
lab-11/atm.py
@@ -38,13 +38,13 @@ def main_menu(id):
38
get_id()
39
elif (selection==2):
40
withdraw_amount=float(
41
-prompt("Enter the amount of money you would like to withdraw: "))
+input("Enter the amount of money you would like to withdraw: "))
42
eval(f"account_{id}.withdraw({withdraw_amount})")
43
print(f"${withdraw_amount} was withdrawed successfully\nYour new balance is{eval('account_'+id+'.get_balance()')}")
44
45
elif (selection==3):
46
deposit_amount=float(
47
-prompt("Enter the amount of money you would like to deposit: "))
+input("Enter the amount of money you would like to deposit: "))
48
eval(f"account_{id}.deposit({deposit_amount})")
49
print(f"${deposit_amount} was deposited successfully\nYour new balance is{eval('account_'+id+'.get_balance()')}")
50