6. More than one argument


#1



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


File "python", line 7
print add_function(m, n)
^
IndentationError: expected an indented block


I put exactly what the instructions told me to do, I didn't touch anything else in the code. Can someone explain why this isn't working?


m = 5
n = 13
# Add add_function here!
def add_function(x, y):


print add_function(m, n)


#2

Define a function called add_function that has 2 parameters x and y and adds them together.

# Add add_function here!
def add_function(x, y):


print add_function(m, n)

You need to return the sum of x and y within your function.

return x + y

#3

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