r/learnpython • u/Cautious-Asparagus50 • 18h ago
i don't feel like i'm learning anything in Python. How do I actually get good?
i've been "learning" python for a few years. started when i was younger, parents made me do classes, i barely practiced so i remembered nothing. did classes again, same thing. now i'm doing classes again (codingal) but this time i'm actually trying to practice.
i've done the basics, loops, functions, oop, then tkinter and pygame in class. i don't remember most of it. i taught myself numpy and i kinda get it.
my class is going into ml now like stuff like : pandas, sql, stats, then regression, decision trees, clustering, neural networks with keras/tensorflow. i want to actually be good at this, not just copy code.
the problem is i can't build anything on my own. i've made an rpg and a numpy grade analyzer but only with ai helping me. i tried tic tac toe and got stuck partway. when i sit down with a blank file i just don't know what to do first, so i end up searching it up or asking ai. i feel like i can't think for myself.
i practice about 1-2 hrs a week (1 hr is class). now trying to do 3-5 on top of school and sports.
also, i build websites for small businesses on the side. i know basic html/css, but ai writes most of the code. is it worth learning web dev properly, or is ai good enough at that now that i should just focus on python/ml? and how do i get better at web design and develop good taste? i can build stuff but i can't always tell why one design looks better than another.
what's the best way to get from "i know the syntax" to "i can actually build stuff"? should i go back and redo pygame/tkinter or just push on into ml? any advice on what to do when you're staring at a blank file? Thank you very much 🙏
2
u/dr_edo_available 18h ago
Practice Practice Practice. Sorry no shortcut. But finding a project that excites you will make it more enjoyable.
0
u/Cautious-Asparagus50 18h ago
ok so like learn a single topic right than directly practice and build a project with it right?
1
u/JaguarMammoth6231 18h ago
That is ok, but even better is to try to build a project you like and figure out what tools/methods you will need as you go.
What do you want to make using python? Why are you learning it?
3
3
3
u/aqua_regis 16h ago
Everybody advises for more practice - and with that, everybody is absolutely 100% right.
Nobody so far has pointed out the obvious: stop using AI to do your work and thinking.
As soon as you face an obstacle, you outsource to AI. That is actively hindering and destroying any improvement of yours, no matter what domain - Python or web dev. Even for web dev, you just outsource to AI.
You are going to the gym to tell the others what reps to do, watch them, and then wonder why your muscles don't grow.
I would also be very careful doing client business with only AI generated code without you actually being competent enough to verify the quality of the generated code.
1
1
u/bra1n_gym 17h ago
At the bottom of the python.org site is a section "Use Python For" that list several area python is used for and the most popular libraries used in that field of study. Learn to use python for your field of interest starting with those libraries.
1
u/Ivashkin 16h ago
Depends what the goal is - if it's making a living from selling code, then not learning how to use AI as part of that is going to kill your buisness before it gets off the ground. If it's to learn how to code in python for the sake of knowing how to code in python, ditch the AI and focus on learning how to write everything by hand.
Either way, the best way to learn is to find problems to solve that matter to you and that you're genuinely interested in solving. My best app was something I built because it was raining, and I wanted a tool that would help me understand when I could fly my drone.
1
u/kilkil 13h ago
I would suggest starting with some basic exercises. when I was learning Python in school, I started with http://codingbat.com. other good websites are codewars and leetcode (start with easy level problems for both of those).
this will put you in situations where you can actually get some practice using the syntax you already know. the goal is to become familiar with using the basic syntax, through frequent repetition in small bite-size chunks. this will help build your intuition, so that you can look at a particular problem and say e.g. "oh yeah this will need an array and a loop".
as you are doing these exercises, there is a good chance you will come across situations where you don't know the exact best syntax. I would strongly suggest you use this as an opportunity to practice another thing: reading the documentation. The official Python documentation is at https://docs.python.org, and consulting it regularly will improve your ability to problem-solve. it will mean that you don't have to memorize solutions, because you can always just quickly check the docs.
when you feel that you have developed a better intuition for Python syntax, come back to what you were doing with Tic Tac Toe.
1
u/ivovis 11h ago
Stop trying to learn it and start using it, build a long list of projects, keep them simple and work your way through them - doing is everything, do not copy past code from AI EVER ... you must type it in yourself, by all means ask the AI question about stuff you not sure about, how best to approach a particular problem, keep the AI for research not for any problem solving - that's your job.
1
u/TheRNGuy 8h ago
Write real software, not tutorials.
Learn concepts over time, and refactor your software as you learned them (if they are needed at all)
If you learn tons of concepts and never use in your own software (not tutorial copy-paste), then you'll forget many (but still remember some)
1
u/mobeen-nasir 8h ago
lol same, tutorials made sense until I opened a blank file and my brain just went empty. what helped me was picking one tiny thing I actually wanted and just building it badly, googling stuff whenever I got stuck.
12
u/oldendude 18h ago
It needs a lot more time, every day, months on end. And you definitely need a project. Learning things by reading, and doing tutorials is pretty useless IMHO. You need to build something, and when you get stuck, find what you need to get unstuck. And then what you've learned sticks.