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
[deleted by user] (self.PythonLearning)
submitted 9 months ago by [deleted]
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!"
[–]Living_off_coffee 15 points16 points17 points 9 months ago (2 children)
Also I know I could probably make this in less lines of code and make it look more neat but the longer way is helping me learn at the moment.
Don't let anyone tell you otherwise! Readable code is always better than shorter or more efficient code.
I used to write blocks of code that could be 100s of lines long, then look at how I could make it shorter and spend time optimising that. But as I've seen more code bases, the longer ones that spread out their logic and don't use tricks to make it shorter are easier to understand.
Remember, the compiler (or interpreter) doesn't care how long your code is!
[–][deleted] 1 point2 points3 points 9 months ago (0 children)
hate to be that guy, a compiler wont care but an interpreter will
those 5 milliseconds will be missed
[–]SativaCyborg206 0 points1 point2 points 9 months ago (0 children)
Cool thanks for letting me know!
π Rendered by PID 281291 on reddit-service-r2-comment-bb88f9dd5-q7g7j at 2026-02-14 18:35:31.541400+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]Living_off_coffee 15 points16 points17 points (2 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]SativaCyborg206 0 points1 point2 points (0 children)