Skip to content

Commit 7153669

Browse files
committed
Improved wording
1 parent 72edbad commit 7153669

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lab-11/atm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ def main_menu(id):
4040
withdraw_amount = float(
4141
input("Enter the amount of money you would like to withdraw: "))
4242
eval(f"account_{id}.withdraw({withdraw_amount})")
43-
print(f"${withdraw_amount} was withdrawed successfully\nYour new balance is ${eval(f'account_{id}.get_balance()')}")
43+
print(f"${withdraw_amount} withdrawed successfully for account {id}\nYour new balance is ${eval(f'account_{id}.get_balance()')}")
4444
get_id()
4545
elif (selection == 3):
4646
deposit_amount = float(
4747
input("Enter the amount of money you would like to deposit: "))
4848
eval(f"account_{id}.deposit({deposit_amount})")
49-
print(f"${deposit_amount} was deposited successfully\nYour new balance is ${eval(f'account_{id}.get_balance()')}")
49+
print(f"${deposit_amount} deposited successfully for account {id}\nYour new balance is ${eval(f'account_{id}.get_balance()')}")
5050
get_id()
5151
elif (selection == 4):
5252
exit()

0 commit comments

Comments
 (0)