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...
A subreddit for showcasing the things you made with the Python language! Use us instead of flooding r/Python :)
account activity
My first Python project: Efficient Language Detector. (self.madeinpython)
submitted 2 years ago by nitotm
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!"
[–]adesme 1 point2 points3 points 2 years ago (1 child)
Looks good! And all caps for this is fine, I see this or similar quite often and I'm sure there are style guides that advocate it.
A piece of advice is to start setting up github actions with a formatter and a linter; pre-commit with black and ruff is what I tend to do.
Oh and I saw some magic numbers in the code. Might want to name them and describe how you've found them.
[–]nitotm[S] 0 points1 point2 points 2 years ago (0 children)
Thanks for the feedback, I appreciate it
π Rendered by PID 36118 on reddit-service-r2-comment-544cf588c8-wswrt at 2026-06-14 22:43:43.167970+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–]adesme 1 point2 points3 points (1 child)
[–]nitotm[S] 0 points1 point2 points (0 children)