r/learnpython • u/OddIndication4 • Dec 29 '24
How do I properly learn Python nowadays?
I do believe that I have to force myself to get addicted to Python, so I can make progress in my life. I'm generally a very creative person and I think Python is literally the best way to realize the ideas I have in my head. I'm a beginner in Python - I did the cs50 Harvard course, then managed to somehow program something that actually helped me and then I didn't do anything with Python for atleast 8-9 months. I'm now looking to get back into it.
Now, the thing that really bothers me is, I don't really understand how to properly learn Python. I know that I will get stuck many times trying to realize personal projects and when I do, I don't know how to help myself. If I use google for help I feel like I'm not using the fastest way to learn, because optimally I want to find the answer to my question immediatly. When I use AI like ChatGPT it feels like I'm not learning anything, because the AI just tells me everything beforehand and I don't have to think.
Maybe I'm just stupid and finding yet another way to procrastinate, idk... Please help
11
u/socal_nerdtastic Dec 29 '24
Same as it's always been: Find some projects and get them done. These can be projects to help your personal or professional life, or they can be class projects. Use all resources you want including google, SO, and AI (even the professionals do). As you do this you will gain experience and that's what learning is, and you will shift from using your resources from the simple things to using them for the complex things, and soon you will find a problem that even chatGPT can't solve and you need to use your previous learning to solve it yourself.
3
u/spacester Dec 30 '24
> Find some projects and get them done.
As you learn to do certain things, you will build up a personal collection of code that you know works. The more you clone this code and add to it for new uses, the more solid you get with that capability. Do this, and go out of your way to find projects that demand new capabilities, execute your brain's maximum logician mode and bear down and get it and fix it. Quit thinking you are stupid.
5
u/Strong-Mud199 Dec 29 '24
As everyone else has said here: "Practice"
You can read a book on say, Tennis, but you won't be able to play Tennis until you actually practice, practice, and practice some more.
Also: Find some things to 'Automate' - Python is a perfect 'Automation' Language.
Ideas (free book),
https://automatetheboringstuff.com/
Hope this helps.
1
u/SocialNoel Jun 07 '25
I’ve recently bought this book. Although the site has it all, it’s just that I prefer stare at the code on paper than on screen 🤓
4
u/schoolmonky Dec 29 '24
I feel like I'm not using the fastest way to learn, because optimally I want to find the answer to my question immediatly
I get why you would feel this way, but the opposite is actually true: the more effort you put into finding information, the more likely that information is to stick. That, plus the fact that the most important thing you can learn, especially for programming, is how to find information, means that instant solutions are the worst way to learn.
So with that in mind, I would definitly recommend against relying too much on ChatGPT, and would recommend getting real cozy with the official Python docs. They are a treasure trove of just about everything you need to know about the language. You could learn the whole language from the docs alone, but the fact that you have at least the basics already will help you get the most out of them now.
3
u/maverick_soul_143747 Dec 29 '24
The way I started it was learning the course in Kaggle and then moving on to problem statements and use cases I wanted to work on. Post that started picking up projects that will help me improve my knowledge.
1
u/Comfortable-Slice556 Dec 29 '24
Necessity is the mother of invention. Get yourself into a real situation where you actually need a Python solution. Then figure out how to make it. Repeat.
1
u/Hunterstorm2023 Dec 29 '24
My problem is, I'm a frontend dev with 20+ years experience, react currently, and i have little to know idea what to use python for on the frontend, and don't really understand how the backend works.
I get what an api is, which is just the fe requesting info from the back, which requires auth, proper headers, to query the info from a db, and return the json. But how to translate that via python is where I'm clueless.
1
Dec 30 '24
Python crash course is pretty good, it’s fun and forces you to practice active recall, which is important for learning any new skill!
1
-1
u/OddIndication4 Dec 29 '24
I guess my problem is moreso about acquiring knowledge... because I think by using AI too much, I'm not gonna learn anything, because I barely have to think
1
u/Agitated-Soft7434 Dec 29 '24
Your definitely right about AI IMO.
Most knowledge you will acquire is simply from just doing projects and over a long period of time while will picking up the knowledge from those projects. (and then later you may use AI to help complete stuff you already know to get a speed improvement or if your super stuck).
> If I use google for help I feel like I'm not using the fastest way to learn
Personally I believe google is a great tool and you will often see memes saying how most programmers' code is from stackoverflow which is most of the time true 😆. So don't be concerned about speed as googling as it is a great way to see others code and solutions to problems you may be facing.> optimally I want to find the answer to my question immediatly
Being "optimal" is not exactly a good way to look at things. This will take a LOT of time to learn and there aren't to many short cuts (except for AI but we already covered that its not the greatest way to learn).
Sometimes I even speed multiple hours (and even days) scrolling through google search results for a single problem that I was facing.
But the more you do these things will improve the way you actually search. Allowing you to be better at refining your query with the more knowledge you gain which can result in "finding the answer immediately" (sometimes).Hope this helps :)
1
Dec 30 '24
[removed] — view removed comment
1
u/OddIndication4 Dec 31 '24
It was a "program" that calculated the date of something, based on data that it took from an API. This helped me track when I had to pay out rewards to said person. I didn't follow up on it, because it became useless after a while.
10
u/endgamefond Dec 29 '24
Maybe start by setting a clear objective for why you want to learn Python. Python can be used for many things, so it’s helpful to narrow down your focus to a specific goal. From there, you can start working on related projects. I’m also a beginner, but I’ve found that I use Python for my specific needs rather than for professional work.