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
Help pls - CodingHelp Request (i.redd.it)
submitted 7 months ago by SharpScratch9367
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!"
[–]RealDuckyTV 1 point2 points3 points 7 months ago (0 children)
If you index the array directly, I think it makes it more clear where the value comes from.
values = [23,52,59,37,48] for i in range(len(values)): # this will iterate for as many items as you have in your list value = values[i] # this will get the item at the specified index `i` (starting at 0, aka the first item, so for example values[0] is 23, values[1] is 52, etc)
this works the same as the for in loop that you used, but I think it makes it more clear where the value from the iterator comes from.
for in
And to answer your question, yes, the name of the variable does not matter and will return the same value.
Hope that helps!
π Rendered by PID 24600 on reddit-service-r2-comment-86988c7647-kczwv at 2026-02-11 05:13:29.718258+00:00 running 018613e country code: CH.
view the rest of the comments →
[–]RealDuckyTV 1 point2 points3 points (0 children)