I've got a couple of questions about functions in Python:
First question: Let's say we have this function
Can we choose the parameter we want when defining a function? Because I see that
*arg seems a little different than
n, and what does
*arg exactly do?
Second question: We have this code
def fun_one(n): return n * 5 def fun_two(m): return fun_one(m) + 7
Why does the
fun_one(n) change into
A parameter acts like a variable for arguments, is that why we have to mention only
fun_one and not its parameter? So, every time we want to add two functions, we only have to mention the function we want do add, in this case
fun_one and the parameter's second function? Thanks
Thanks in advance.