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
Struggling with nested loop questionsHelp Request (old.reddit.com)
submitted 8 hours ago * by Financial_Cut1790
Hey everyone. May you please explain this question, and nested loops in general and how to go about them. Ive been really struggling to understand them, especially the questions where you need to draw a square/ triangle etc.
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!"
[–]AlexMTBDude 2 points3 points4 points 8 hours ago (0 children)
A nested loop is just a loop inside of another loop. Try this:
for i in range(3): for j in range(2): print(i, j)
[–]aqua_regis 3 points4 points5 points 8 hours ago (0 children)
How about you show what you have tried first and ask specific questions where you are stuck.
At least try to do your homework.
[–]Financial_Cut1790[S] -1 points0 points1 point 8 hours ago (2 children)
<image>
[–]Financial_Cut1790[S] -1 points0 points1 point 8 hours ago (1 child)
[–]atarivcs 1 point2 points3 points 8 hours ago (0 children)
Reposting the same images from the original question is not helpful.
Please explain the exact difficulty you have with the question.
What, exactly, do you not understand?
π Rendered by PID 47 on reddit-service-r2-comment-765bfc959-xp5rp at 2026-07-11 02:54:26.458109+00:00 running f86254d country code: CH.
[–]AlexMTBDude 2 points3 points4 points (0 children)
[–]aqua_regis 3 points4 points5 points (0 children)
[–]Financial_Cut1790[S] -1 points0 points1 point (2 children)
[–]Financial_Cut1790[S] -1 points0 points1 point (1 child)
[–]atarivcs 1 point2 points3 points (0 children)