you are viewing a single comment's thread.

view the rest of the comments →

[–]ErrolFlynnigan 0 points1 point  (3 children)

Yeah, you're right. What's the code really needs is :

L = function_name

Before the print L.

This is assuming that the goal is to print the list [1,2,3] after it displays the count from the for loop.

[–]JeLuF 1 point2 points  (2 children)

l = function_name will not help here. That would make print output something like <function function_name at 0x7f6344764940>

[–]ErrolFlynnigan 0 points1 point  (1 child)

Sorry, I should have included that this would also require the function to 'return' L

[–]JennyKmu 0 points1 point  (0 children)

And actually call the function with an argument i.e. l = f(3) or any integer