r/learnpython • • 4d 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 🙏

4 Upvotes

30 comments sorted by

15

u/oldendude 4d 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.

9

u/ZimranYaison86 4d ago

jumping straight into neural networks and clustering when tic tac toe is still a roadblock is probably why nothing is sticking yet

3

u/kayne_21 4d ago

The struggle is the point! If you don't actually struggle with things, your brain doesn't really make good connections for the information. If there's no friction, you don't learn.

-3

u/Cautious-Asparagus50 4d ago

i try giving asmuch time i can since i have school and i have a lot of classes like sports aswell like i do football karate swimming and go gym so it becomes kidna hard but i lowk might have to drop some of these like maybe like karate and maybe football and keep as hobby playing with friends sometimes ig

3

u/oldendude 4d ago

I don’t know what to tell you. You are prioritizing sports over programming, 4:1, so you’ve made your choice. More tutorials are a waste of time. Spend that time you do have on building something from scratch.

1

u/Cautious-Asparagus50 19h ago

Im planning to drop some maybe workout at home drop karate classes and swimming and swimming i go for my self possibly and tunning my self and play with a team and i also have school and have to keep on top of that aswell

2

u/dr_edo_available 4d ago

Practice Practice Practice. Sorry no shortcut. But finding a project that excites you will make it more enjoyable.

1

u/Cautious-Asparagus50 4d ago

ok so like learn a single topic right than directly practice and build a project with it right?

1

u/JaguarMammoth6231 4d 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?

4

u/Nomapos 4d ago

Stop learning, start doing.

Build a big project. You learn as you go.

1

u/pythonwiz 1d ago edited 1d ago

You get good by doing a lot of your own projects, reading a lot of documentation and code, and following your interests. For ML it helps if you’ve taken multivariable calculus and linear algebra. When I was learning, AI wasn’t a thing so I had to bang my head against problems until I figured it out, or else I searched Stack Overflow or asked my own questions there.

Good luck!

P.S.
I do use AI now but mostly for research. When I get stuck I try to break down my problem to the simplest version and ask for examples. Then I use the AI generated code to point me in the right direction, I read the code and try to find the parts unfamiliar to me, then I try to find documentation and other human made examples. I never vibe code something that I’m unfamiliar with and I always thoroughly read AI generated code and try to understand it and find errors.

1

u/Cautious-Asparagus50 19h ago

Wow this is so helpful ty so much

3

u/EnvironmentalDot9131 4d ago

You have to practice a lot

3

u/aqua_regis 4d 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.

2

u/kilkil 4d 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.

2

u/ivovis 4d 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/468Cliothecat 4d ago

I ran aground on OOP. The more I studied it, the less sense it made.

1

u/bra1n_gym 4d 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 4d 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/TheRNGuy 4d 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/jaiagreen 2d ago

Don't start from a blank screen. First, break down the problem into logical steps. Think about what you would do by hand and write that down. Then break each step down more. Turn this into comments in file. Now with the pseudocode in place, you can start coding, a little at a time.

1

u/AstralJumper 2d ago

Onjective is possible the best way to learn in structure. Think up projects you would want to do.

Not just a top 10 of begginer projects, but stuff that interests you.

There is something called the "intro loop", where you get stuck doing intro after intro. You need a project, that goes beyond intro practice and have an objective point.

You need to get stuck and learn to get unstuck. Best way to maintain objective learning.

1

u/Available_Safe1818 1d ago

Work on your tic tac toe game until you complete it. Where are you stuck?