[Tutor] Input parameters for functions
Mary Knauth
maryknauth at mac.com
Fri Jun 19 10:44:17 EDT 2020
Hello Everyone,
I have a script for a school assignment, an ATM transaction script based on the purpose of creating functions.
The draft I submitted all worked fine, but the feedback from my instructor was that I needed to use parameters in my functions.
Questions:
My original py script worked 100% with no parameters in the functions, so what is the advantage of adding the parameters?
I have put in what I think should be the parameters in my new py file, all the functions work, but do you think I have utilized the parameters correctly?
def balance(account_balance)
def deposit(account_balance, deposit_amount) ———----——is ‘account_balance’ necessary?
def withdrawal(account_balance, withdrawal_amount) —— is ‘account_balance’ necessary?
Many thanks in advance for your insight and thoughts.
Warm Regards,
Mary Knauth
954-412-9280
maryknauth at mac.com
http://www.zephyrsolutions.us <http://www.zephyrsolutions.us/>
<https://zephyrsolutions.us/>
More information about the Tutor
mailing list