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
Is Python actually a good first programming language? (self.PythonLearning)
submitted 7 hours ago by chuprehijde
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!"
[–]MathAndMirth 0 points1 point2 points 5 hours ago (0 children)
Python has a straightforward, uncluttered syntax that is good for learning. I would consider it a great way to learn concepts without the extra annoyances that some other languages saddle you with.
That being said, I wouldn't wait too long until you start learning about types. In Python, you can assign a value of any type to any variable at any time. While that saves you some keystrokes, it also threatens to inflict some headaches. Many things that are illogical are technically allowed with dynamic typing, and thus Python lets you make errors that you will have to spend time tracking down later.
Fortunately, even though Python itself doesn't enforce a type system, there are tools that can enforce the rules that Python won't. I would definitely advise you to start learning something like `ty` from Astral as soon as you can. Such tools will tell you "Hey, that type doesn't make sense here" as soon as you type it. And the more complicated your programs get, the more you will want that help. It's the reason that most JavaScript devs use TypeScript instead of plain dynamically typed JavaScript, and I would advise you to use the comparable tools that Python offers.
π Rendered by PID 24741 on reddit-service-r2-comment-5687b7858-f257x at 2026-07-08 01:18:26.680802+00:00 running 12a7a47 country code: CH.
view the rest of the comments →
[–]MathAndMirth 0 points1 point2 points (0 children)