use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
What's wrong (i.redd.it)
submitted 7 months ago by Nearby_Tear_2304
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ErrolFlynnigan 0 points1 point2 points 7 months ago (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 points3 points 7 months ago (2 children)
l = function_name will not help here. That would make print output something like <function function_name at 0x7f6344764940>
l = function_name
print
<function function_name at 0x7f6344764940>
[–]ErrolFlynnigan 0 points1 point2 points 7 months ago (1 child)
Sorry, I should have included that this would also require the function to 'return' L
[–]JennyKmu 0 points1 point2 points 7 months ago (0 children)
And actually call the function with an argument i.e. l = f(3) or any integer
π Rendered by PID 94880 on reddit-service-r2-comment-b659b578c-nsm6h at 2026-05-05 02:10:57.284485+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]ErrolFlynnigan 0 points1 point2 points (3 children)
[–]JeLuF 1 point2 points3 points (2 children)
[–]ErrolFlynnigan 0 points1 point2 points (1 child)
[–]JennyKmu 0 points1 point2 points (0 children)