Syntax error for Task 11. List manipulation in functions


#1
      hi i'm having a problem. tried what you guys have mentioned and its still giving me incorrect syntax

This is what i have so far:

n = [3, 5, 7]

Add your function here

n = [3, 5, 7]
def list_extender(lst):
lst.append(9)
return lst
list_extender(n)

this is the message that comes up:

File "python", line 6
SyntaxError: 'return' outside function


#2

Indent return. 4 spaces or press tab. Also please get into the habit of formatting your questions use Ctrl+K over code.


#3

ok thank you. i'm new to this website.