File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,16 @@ def main_menu(id):
30
30
selection = int (input ("Enter your selection here: " ))
31
31
if (selection == 1 ):
32
32
print (eval (f"account_{ id } .get_balance()" ))
33
- else if (selection == 2 ):
33
+ get_id ()
34
+ else if (selection == 2 ):
34
35
withdraw_amount = float (prompt ("Enter the amount of money you would like to withdraw: " ))
35
36
eval (f"account_{ id } .withdraw({ withdraw_amount } )" )
36
- print (f"${ withdraw_amount } was withdrawed successfully" )
37
-
38
-
37
+ print (f"${ withdraw_amount } was withdrawed successfully\n Your new balance is { account_ {id }.get_balance ()} " )
38
+ get_id ()
39
+ else if (selection == 3 ):
40
+ deposit_amount = float (prompt ("Enter the amount of money you would like to deposit: " ))
41
+ eval (f"account_{ id } .deposit({ deposit_amount } )" )
42
+ print (f"${ deposit_amount } was deposited successfully\n Your new balance is { account_ {id }.get_balance ()} " )
43
+ get_id ()
39
44
40
45
get_id ()
You can’t perform that action at this time.
0 commit comments