r/learnpython • u/Still_booting • Jan 06 '26
Correct way to learn python
I'm been learning python for past 17 days.My learning process is like watch video ask chatgpt for 20-40 question and try to solve it myself but a guy in tech field said this approach is time consuming. What I can do is learn python from vibe coding make small projects from vibe coding and try to break that code understand the kigcs behind it why used the certain concepts. He said just solving WAP questions will get you to now where try learning with vibe coding. Build lots of projects with vibe coding and learn. Should I do as he said or just follow traditional way solving 20-40 questions etc
2
u/Tall-Introduction414 Jan 06 '26 edited Jan 06 '26
An old school way is to get a good book or 2 on a language and read the first few chapters or 1/3 or half the book or so, trying out what you learn along the way in an interpreter or a compiler. Start tackling simple ideas and projects as early as you have the tools to. Use the rest of the book as reference, or keep reading it.
Solving small problems, and writing lots of small programs help you get comfortable with the language and tools without being overwhelmed.
Write useful stuff, but also write stupid stuff. Goofy animations, noise generators, etc. Batch file re-namers. Alarm clocks. This is an art. Have fun with it and be creative. Get some data on the screen and play with it. Complain about a program that annoys you and make your own version.
I remember doing all of those things with BASIC and Pascal as a kid, and in Python (and other languages) as an adult, and I have the books to prove it.
If you make something you find useful enough to keep using, it will naturally grow, and eventually turn into a cool project that other people might use, too.
The LLM is pretty amazing for asking questions.
1
u/Still_booting Jan 06 '26
LLM?
2
5
u/SprinklesFresh5693 Jan 06 '26
17 days is nothing, try for months and years, and do some projects once you have a basic idea of the language.
3
u/Lokrea Jan 06 '26
Please don't try to learn via vibe coding.
Instead, build a strong foundation, by learning the basics from the best free Python course, which is Harvard's CS50:
https://cs50.harvard.edu/python/
You can even get a Harvard Computer Science certificate, and more programming skills, if you take the https://cs50.harvard.edu/x/ course as well.
See also https://www.reddit.com/r/cs50/.
2
3
u/SharpSho7er Jan 06 '26
This could be helpful, https://automatetheboringstuff.com/ I'm still learning to code python myself, but this website is by the author of "Automate The Boring Stuff", and it's a book you can buy to support him or read them all for free. It's a really good free resource and he even has links to his other books (also free to view online) that even include small projects ranging from little code to probably around 150 lines.
Also, videos are great. I am using them to get a better understanding of OOP in coding (class whatever:, that type of thing). Just be cautious with asking ai, I am also using it a bit, but having it help me understand why I might be having a problem (helping to locate it) has been helpful. Even helped me split my single script into multiple ones. Again though, be cautious, use it as a tool, not as the coder.
3
u/roadrussian Jan 06 '26
I disagree. When starting you have no fucking idea what you are doing. Here Vibe coding will ( or wont if hallucinating) help you get trough stupid shit stopping progress every 2 seconds.
Start by simply choosing a project and making it. Something tangible.
Slowly you will start making dogshit code without understanding it. This is fine.
Only then start jumping into literature.
What is written above is complete 180 from conventional wisdom. There people say you need to learn underlying concepts first and only then start writing code. I disagree.
This is tedious and post people dont last doing it this way.
By simply yolo'ing first you can get into it and get some handles on it first. Afterwards get into the boring stuff. Ow, and, vibecoding will teach you utter dogshit best practices. Just keep that in mind.
-3
u/lazyboy76 Jan 06 '26
Yes. I learn a lot with vibe, and I think people should get proper degree/proper education. My choices should be we go with both, proper education, and use AI as helper.
2
u/Wide_Egg_5814 Jan 06 '26
Make small projects on your own no AI or only AI when you get stuck and understand every single line of code or have a rough idea what it does
2
u/golempremium Jan 06 '26
This, I made a project Vibe Coding while trying to learn python to the side, and then properly learnt python by making projects and exercises without AI (or only when really stuck), and only now I understand the code of the project I made with vibe coding. And I also can see how much I wasn’t understand a sh*t about what the ai was writing, although at the time I thought so
1
u/Wide_Egg_5814 Jan 06 '26
Yes also there is a big difference between understanding code and being able to write it, you can understand the code of your view coded project and still not be able to make it because to the brain understanding something is different from being able to do it
2
u/bannana_girl Jan 06 '26
I would advise against using vibe coding or ai during your learning process. You need some traditional methods that are known to have worked.
1
u/OutgunOutmaneuver Jan 06 '26
I dont see anything wrong with that, the fallacy would be taking the generated code and calling it your own. But if your diessecting it and it helps you hell yeah 😄
1
u/TheRNGuy Jan 06 '26 edited Jan 06 '26
AI generated code sometimes is bad, you may learn bad habits from that (though it may still work, at least simple programs... until you get some bugs ai can't fix)
Besides that, you don't even have prompting skills, you get them from manual coding. Or maybe at least design or project manager skills?
Ai is good at explaining concepts though, or asking a vs b framework questions, or about which patterns to use for specific parts of program, or how to combine patterns (it is not the same as asking ai to write entire program for you... funny thing, if you just ask ai to write program, he won't even use those patterns he knows about, unless you specifically tell to)
0
0
u/Routine-Lawfulness24 Jan 06 '26
No. Don’t vibe code. You can ask chatgpt for micro projects and try to build that, google as much as you can
0
u/thuiop1 Jan 06 '26
Just don't use AI, it is the worst way to learn.
4
u/TheRNGuy Jan 06 '26
Don't ask ai to write program to you, but ask to explain concepts from docs, video or from article found in internet.
Most of Reddit threads could be easily answered by ai, much faster too.
Cool thing about AI it's possible to have dialog with him, even asking small stupid things, he have infinity patience. Kind of questions you'd never ask on reddit or stackoverflow.
3
2
Jan 06 '26
[removed] — view removed comment
0
u/Still_booting Jan 06 '26
The main issue what I'm facing is like I solved the problem yesterday right but I forgot how I did it the next day
1
u/ZelWinters1981 Jan 06 '26
Having someone or something give you answers isn't learning. You'll be taught a few concepts, then shown examples on how to put them together.
From there you will be given a project to utilise those tools you've learned.
You keep learning, and stop using AI.
0
u/SetAffectionate766 Jan 06 '26
Mind you senior programmers used only books or they search google for guidance. That was 2x a lot harder back then,. but with AI, you can use it as you're teacher. Just don't rely on it blindly, what I mean is, don't become a "vibe coder".
2
Jan 06 '26
[removed] — view removed comment
0
u/Still_booting Jan 06 '26
I'm really motivated I have a streak of learning 17days 3hrs consistent in learning python what I want to do is become a backend developer with ai integration. But like in social media I have like so many people suggesting this and that as a guide cause I don't have a clear roadmap. And the guide is making me doubt myself am I doing it wrong etc etc.Some says do vibe coding some says learn from this video that website this website. So I want a solid roadmap to begin even though I'm in a streak of learning python consistently
1
2
u/throwaway6560192 Jan 06 '26
Third way: neither "questions" nor vibecoding projects, just build projects entirely on your own.