5. Functions Calling Functions


#1



https://www.codecademy.com/courses/python-beginner-c7VZg/1/4?curriculum_id=4f89dab3d788890003000096


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


#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


#3

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