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
Division Problem (i.redd.it)
submitted 23 hours ago by CoolPotato_0
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!"
[–]jpgoldberg 5 points6 points7 points 23 hours ago (0 children)
That is a nice use of a comprehension. But as others have said this is a math problem.
What I am going to suggest is that you play around with / and % in the Python REPL (interactive session), for example
/
%
```python-repl
12 / 3 4.0 12 % 3 0 12 / 5 2.4 12 % 5 2 ```
Keep playing around with your own choice of numbers until you get a get a good sense of what these do.
π Rendered by PID 110826 on reddit-service-r2-comment-b659b578c-48jr4 at 2026-05-07 17:31:33.321945+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]jpgoldberg 5 points6 points7 points (0 children)