On first glance, I know the following code looks incorrect.
def one_good_turn(n): return n + 1 def deserves_another(m): return one_good_turn(n) + 2
Here is the link for reference:
example function within a function’
In the actual example before hand, the python coure suggested doing the following:
Functions Calling Functions
We’ve seen functions that can print text or do simple arithmetic, but functions can be much more powerful than that. For example, a function can call another function:
def fun_one(n): return n * 5 def fun_two(m): return fun_one(m) + 7 `` My specific problem is that I want to use a different letter for the parameter than the first function. So looking at example A, I want def deserve another to have a different parameter name than def one good turn How would I do that?