11. Lesson not passing?


#1

The lesson is not passing although I believe the correct answer is printing to the console. Code below and screenshot.

https://www.codecademy.com/courses/python-beginner-nzzVa/2/4?curriculum_id=4f89dab3d788890003000096


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

print list_extender(n)


#2

Hi this line

n.append(9)

you should change the n with the parameter lst


#3

Thanks @wizmarco Now that you explained it, this makes perfect sense. I just couldn't see it before. So simple / obvious. Well, perhaps not for me :slight_smile:


#4

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