5. Functions Calling Functions



I have been working at this for hours and i think i may be overcomplicating it please help

def one_good_turn(n):
    return n + 1
def deserves_another(n):
    return n + 2


your deserves_another function should call one_good_turn, see this example:

def fun_one(n):
    return n * 5

def fun_two(m):
    return fun_one(m) + 7

how fun_two calls fun_one


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.