Content-Length: 272225 | pFad | http://github.com/unrealapex/python-programming/commit/b78abf40f4acb3c824f9a4bffde5cd0f12bf417f

98 input · unrealapex/python-programming@b78abf4 · GitHub
Skip to content

Commit b78abf4

Browse files
committed
input
1 parent b06e294 commit b78abf4

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
@@ -38,13 +38,13 @@ def main_menu(id):
3838
get_id()
3939
elif (selection == 2):
4040
withdraw_amount = float(
41-
prompt("Enter the amount of money you would like to withdraw: "))
41+
input("Enter the amount of money you would like to withdraw: "))
4242
eval(f"account_{id}.withdraw({withdraw_amount})")
4343
print(f"${withdraw_amount} was withdrawed successfully\nYour new balance is {eval('account_'+ id + '.get_balance()')}")
4444
get_id()
4545
elif (selection == 3):
4646
deposit_amount = float(
47-
prompt("Enter the amount of money you would like to deposit: "))
47+
input("Enter the amount of money you would like to deposit: "))
4848
eval(f"account_{id}.deposit({deposit_amount})")
4949
print(f"${deposit_amount} was deposited successfully\nYour new balance is {eval('account_' + id + '.get_balance()')}")
5050
get_id()

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/unrealapex/python-programming/commit/b78abf40f4acb3c824f9a4bffde5cd0f12bf417f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy