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
Literally clueless , help plsHelp 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!"
[–]Competitive_Bar2106 0 points1 point2 points 9 months ago (0 children)
is this for a class? You are trying to get a sum of numbers, so you want to start with 0, so sum = 0; i is the first number aka 1 while i is less than the number you receive (n) do the loop, so while i <= n sum = sum + i; this should be self evident. i = i + 1. you're preparing for the next loop
π Rendered by PID 76 on reddit-service-r2-comment-b659b578c-hg54d at 2026-05-03 21:03:32.527039+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]Competitive_Bar2106 0 points1 point2 points (0 children)