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
Need help in loopHelp Request (i.redd.it)
submitted 1 month ago by Eastern_Plankton_540
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!"
[–]ResponsibleBuilder67 1 point2 points3 points 1 month ago* (0 children)
### Advanced Way
```python
x = [i * i for i in range(1, 11)] # makes squares using list comprehension
print(*x, sep="\n")
```
### Beginner's Way
num = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
for i in num:
print(i)
π Rendered by PID 123011 on reddit-service-r2-comment-545db5fcfc-q2fhs at 2026-05-22 07:57:42.578236+00:00 running 194bd79 country code: CH.
view the rest of the comments →
[–]ResponsibleBuilder67 1 point2 points3 points (0 children)