Printing out a list item by item in a function


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?


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.


@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.


Oh, I'm glad it worked :slightly_smiling:


I ended it =)