Could some one help pelase


#1

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

File "python", line 5
return x + y
^
IndentationError: expected an indented block

Save & Submit Code
Reset Code
Oops, try again. Your code looks a bit off. Check the console window for errors!


#2

This is telling you that you have a problem with your indentation.

I don't hang out here in the Python course much, but I expect they will have explained indentation to you by now - yes?


#3

Try it like the above code. You have to make sure your return statement is indented.


#4

Sorry. I pasted in the original code. It should be like below.

m = 5
n = 13

Add add_function here!

def add_function(x, y):
indent preformatted text by 4 spacesreturn x + y
print add_funtion(m, n)


#6

That is a pretty strange thing to leave in your code. You could easily fix that.

You are going to get an error message with this next bit:


#7

indentation is equivalent to tab key on the keyboard or 4 spaces try this:

m = 5
n = 13
    
def add_function(x,y):
    return x + y   # this is the indented line of code

print add_function(m, n)