11. List manipulation in functions


#1

why isn't my function returning anything?
https://www.codecademy.com/courses/python-beginner-nzzVa/2/4?curriculum_id=4f89dab3d788890003000096

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

#2

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


#3

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