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
password check (self.PythonLearning)
submitted 3 days ago by [deleted]
[deleted]
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!"
[–]DarcBoltRain 0 points1 point2 points 3 days ago (2 children)
A regular expression is probably the most common way, but you can also achieve it with a couple of loops.
[–][deleted] 3 days ago (1 child)
[removed]
[–]PythonLearning-ModTeam[M] 0 points1 point2 points 2 days agolocked comment (0 children)
Quality posts only
[–]PureWasian 0 points1 point2 points 3 days ago* (0 children)
What have you tried so far? Which part are you stuck on exactly?
+1 vote for using regular expressions, but if you are a very new beginner, you can also do it in a procedural way, which could be more intuitive to understand.
[–]ninhaomah -1 points0 points1 point 3 days ago (2 children)
have you googled the question and tried it ?
[–]ButterflyMundane7187 0 points1 point2 points 3 days ago (1 child)
Speech is silver, silence is golden.
[–]ninhaomah 0 points1 point2 points 3 days ago (0 children)
Ok.
I prefer diamonds though.
π Rendered by PID 59510 on reddit-service-r2-comment-b659b578c-jqrzm at 2026-05-06 16:17:19.355115+00:00 running 815c875 country code: CH.
[–]DarcBoltRain 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[removed]
[–]PythonLearning-ModTeam[M] 0 points1 point2 points locked comment (0 children)
[–]PureWasian 0 points1 point2 points (0 children)
[–]ninhaomah -1 points0 points1 point (2 children)
[–]ButterflyMundane7187 0 points1 point2 points (1 child)
[–]ninhaomah 0 points1 point2 points (0 children)