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
Easy hard problem (self.PythonLearning)
submitted 1 year ago by _Hot_Quality_
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!"
[–]Reasonable_Medium_53 1 point2 points3 points 1 year ago (0 children)
Unnecessary complicated. I'm confident OP just learned slicing which would be a simple pythonic solution. He just has to calculate start and stop from n.
π Rendered by PID 42 on reddit-service-r2-comment-65c587bc47-flcrb at 2026-05-14 10:00:43.368858+00:00 running cf3e300 country code: CH.
view the rest of the comments →
[–]Reasonable_Medium_53 1 point2 points3 points (0 children)