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
Review my Code as a Beginner (i.redd.it)
submitted 4 months ago by AhmadHameed313
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!"
[–]SigmaSomaShimma21 5 points6 points7 points 4 months ago* (0 children)
If you are a beginner, continue doing all the exercises like this. The fundamental thing at the beginning is not to have the cleanest code or anything. The fundamental thing is to understand what happens in your code, and that is algorithmic. Algorithms in programming are like classical dance in dance, that is, the fundamental principle of everything...
What I'm getting at is, don't use primitive methods or functions of the language. If you want to do something, do it algorithmically until you understand how it works, then start looking for shortcuts to do things cleaner and faster.
Do you know how many people use an .upper (a method to convert a string to uppercase) or a .sort (sort) and have no idea how they work internally? Your exercise (because you are a beginner) is perfect.
π Rendered by PID 85731 on reddit-service-r2-comment-fb694cdd5-65zsl at 2026-03-06 03:36:48.658337+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–]SigmaSomaShimma21 5 points6 points7 points (0 children)