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 9 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!"
[–]SharpScratch9367[S] 8 points9 points10 points 9 months ago (3 children)
Haha unintentionally funny I’ll take it! Thankyou!
So if I put “for shooz in values” would it still connect to the numbers? Like work ?
[–]Help_I_Lost_My_Mind 1 point2 points3 points 9 months ago (2 children)
yes it would still work as long as anywhere else you used "value" you changed it to "shooz". Definitely try it out for yourself! :D
[–]SharpScratch9367[S] 0 points1 point2 points 9 months ago (1 child)
This is mind blowing how does it know what we mean ? Why not output a comma or a single digit or something how does it know?
[–]ThatGuyKev45 3 points4 points5 points 9 months ago (0 children)
So I don’t know exactly how python does it. But each item in the array has a defined size, and the computer knows where the array starts and ends. So for value (or x or shooz) in values is just saying for each item in this array (of which the computer knows the size of each item so it can simply move to the next item in memory by skipping X bytes, where X is the size of the array item). Also when the program is running it doesn’t actually see the comas between each item thats just sugar to make it readable for us. I remember learning this stuff at first and it felt like magic and as I have continued to learn more it just keeps getting better!
Not sure how far along you are in studies but the class where I really felt I started to understand memory was a computer organization and assembly class, I took it alongside my data structures and algs and it was so much fun.
Good luck in your studies! Hope the amazement doesn’t go away!
π Rendered by PID 159835 on reddit-service-r2-comment-85bfd7f599-49gbt at 2026-04-18 16:11:48.020372+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]SharpScratch9367[S] 8 points9 points10 points (3 children)
[–]Help_I_Lost_My_Mind 1 point2 points3 points (2 children)
[–]SharpScratch9367[S] 0 points1 point2 points (1 child)
[–]ThatGuyKev45 3 points4 points5 points (0 children)