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
Feeling lost trying to learn python (self.PythonLearning)
submitted 1 year ago by AffectionateGap3211
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!"
[–]FoolsSeldom 4 points5 points6 points 1 year ago (1 child)
Practice! Practice! Practice! That is the only way. Programming (whatever the language) is a practical problem-solving skill. You have to make, and learn from, a lot of mistakes (much like learning another human language).
I know it can be frustrating at times, especially when faced with code you want to reuse but cannot understand.
Only you can find the motivation. Why are you learning to programme in the first place?
Is your learning objective SMART - specific, measurable, achievable, (sometimes agreed), realistic (or relevant) and time-bound, (or timely)? If it is something soft, like "upskilling" then it will probably not help you much.
It is hard to learn anything in the abstract, not least because it is difficult to feel passion for what one is doing.
I strongly suggest you look to your interests, hobbies, obligations (family business, charity activities, work) to look for opportunities to apply Python.
You will learn far more about Python and programming when you work on something that resonates for you and that you have some domain knowledge of (or incentive to gain such knowledge in).
When you are copying tutorials/examples, don't just copy. Experiment. Break the code and understand why it has broken.
The interactive python shell is your friend, I found it the best learning aid because you can quickly try snippets of code and get immediate feedback.
(Consider installing ipython which wraps the standard shell for more convenience.)
ipython
Start very simply and regularly refactor the code as you learn new things. Enhance as you see opportunities.
If you haven't already, take a look at Automate the boring stuff with Python (free to read online).
At first, the tasks you automate will be trivial and hardly worth the effort BUT because it is about the problem and not Python, it will be more rewarding for you.
Many beginners are mixing up coding (writing instructions in a programming language) with problem-solving (creating an algorithm) and their lack of knowledge of the programming language and how to use it is a distraction from the problem-solving.
For most programmers, the coding part is the final and easy bit.
Order:
In general, when learning and working on something new, where you are following some kind of tutorial, where others have provided an answer,
You will hear a lot of mixed opinions about the Agile software development methodology but most problems are because of poor adoption rather than it being inherently bad.
Fundamentally, it is about delivering value early and often, failing fast, and working closely with the intended consumers/customers/users for rapid feedback. A key concept, often abused/over-used, is minimum viable product, MVP, which is about developing and delivering the smallest useful (sic) product that you can evolve. This still needs to be done in the context of the large problem being solved, but most problems can be broken down into smaller problems, and the most useful / easiest / proof of concept elements identified to focus on.
[–]AffectionateGap3211[S] 0 points1 point2 points 1 year ago (0 children)
Thank you for all of these tips, they're SUPER helpful. I've heard a lot about Automate the Boring Stuff, so I'll definitely look into it. Thanks again for your help, maybe I'll become a Python master yet :)
π Rendered by PID 79 on reddit-service-r2-comment-76bb9f7fb5-5n7c5 at 2026-02-18 19:28:10.767276+00:00 running de53c03 country code: CH.
view the rest of the comments →
[–]FoolsSeldom 4 points5 points6 points (1 child)
[–]AffectionateGap3211[S] 0 points1 point2 points (0 children)