What is the problem with my code?


#1

https://www.codecademy.com/courses/python-beginner-c7VZg/1/4

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

#2

from the instructions:

Change the body of deserves_another so that it always adds 2 to the output of one_good_turn

this is the body of the deserves_another function:

return one_good_turn + 2

you should make the changes here, not to the function parameter


#3

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