11. List manipulation in functions


why isn't my function returning anything?

n = [3, 5, 7]
# Add your function here
def list_extender (lst):
    return lst.append(9)      
print list_extender(n)


it seems to be impossible to use append and return on the same line


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