Printing out a list item by item in a function


#1

Define a function called print_list that has one argument called x.
Inside that function, print out each element one by one. Use the existing code as a scaffold.
Then call your function with the argument n.

What's wrong?


#2

Hello, @webpro20516!
I just checked your code and it seems to be correct.
Try refreshing and executing again or even change browsers, Codecademy's program to execute them tends to have a bug every now and then so don't worry about it.


#3

@g4be It looks like is the code behind the app, cause I exchanged every n for an x and it let me go through. The ens came with the lesson.


#4

Oh, I'm glad it worked :slightly_smiling:


#5

I ended it =)