What is Wrong? Please help!


#1

n = [3, 5, 7]

Add your function here

def list_extender(lst):
lst = lst.append(9)
return lst

print list_extender(n)

Oops, try again. list_extender([1, 2, 3, 4]) returned None, did you remember to return the result?

I clearly returned the result. Why is this happening?


#4

def list_extender(lst):
    lst.append(9)
    return lst


print list_extender(n)

I hope this has worked this time round :slightly_smiling: