11. List manipulation in functions


#1

Here's my code:

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

Here's the error:

Oops, try again. list_extender([1, 2, 3, 4]) returned [3, 5, 7, 9] instead of [1, 2, 3, 4, 9]

What??? Help please!!


#2

change return n to return lst