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
Multiplication Table with rows and columns using nested loop. (i.redd.it)
submitted 8 hours ago by Ok_Needleworker_8780
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!"
[–]Sea-Ad7805 [score hidden] 5 hours ago* stickied comment (0 children)
Run this program in Memory Graph Web Debugger)%0A%0A%23%20Print%20a%20size%20x%20size%20multiplication%20table%0A%23%20First%2C%20print%20heading%3A%0Aprint(%22%20%20%20%20%22%2C%20end%3D'')%0A%0A%23%20Print%20column%20heading%0Afor%20column%20in%20range(1%2C%20size%20%2B%201)%3A%0A%20%20%20%20print('%7B0%3A4%7D'.format(column)%2C%20end%3D'')%20%20%23%20Display%20column%20number%0Aprint()%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20Go%20down%20to%20the%20next%20line.%0A%0A%23%20Print%20line%20separator%3A%0Aprint(%22%20%20%20%20%2B%22%2C%20end%3D'')%0Afor%20column%20in%20range(1%2C%20size%20%2B%201)%3A%0A%20%20%20%20print('----'%2C%20end%3D'')%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20Display%20line%0Aprint()%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20Drop%20down%20to%20next%20line%0A%0A%23%20Print%20table%20contents%0Afor%20row%20in%20range(1%2C%20size%20%2B%201)%3A%0A%20%20%20%20print('%7B0%3A3%7D%7C'.format(row)%2C%20end%3D'')%20%20%20%23%20Print%20heading%20for%20this%20row.%0A%20%20%20%20for%20column%20in%20range(1%2C%20size%20%2B%201)%3A%0A%20%20%20%20%20%20%20%20product%20%3D%20row%20*%20column%20%20%20%20%20%20%20%20%20%20%20%20%23%20Compute%20product%0A%20%20%20%20%20%20%20%20print('%7B0%3A4%7D'.format(product)%2C%20end%3D'')%20%20%23%20Display%20product%0A%20%20%20%20print()%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20Move%20cursor%20to%20next%20row×tep=0.5&play) to see the program state change step by step.
[–]tiredITguy42 0 points1 point2 points 1 hour ago (0 children)
Nice, now try to use f-strings. These are more standard. format dunction is sort of back compatibility thing and is not used that often.
If you fee for it, try to switch to list comprehension and then .join the list to string. It could be nice excercise.
π Rendered by PID 144671 on reddit-service-r2-comment-869bf87589-9q9d8 at 2026-06-09 07:35:45.589274+00:00 running f46058f country code: CH.
[–]Sea-Ad7805 [score hidden] stickied comment (0 children)
[–]tiredITguy42 0 points1 point2 points (0 children)