6. More than one argument


#1

m = 5
n = 13

Add add_function here!

def add_function(x, y)

print add_function(m, n)

This is my code, does anyone know why it's not working or could you explain? Thank you!


#2

Why would it be working? Are following some example? Does the example run? If so, what's different? What if you start out with the example and modify it into what you need it to be? (Don't forget to find out the difference afterwards if it just accidentally starts working, and consider how you could have seen that with the information you had available)


#3

m = 5
n = 13

Add add_function here!

def add_function(x, y):
return x+y
print add_function(m, n)

This is my code, hope it can help you.


#4

The return part should be indented inside the function. Functions should always end with "return"


#5

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