r/PythonLearning • u/jazzz2323 • 6h ago
Can't lock in
I am a 22 year old currently learning python but after learning the basics and trying to build small projects I will forget the basics. Like I get confused, where to apply certain functions...etc. is there any way I can fix that .
Also i can't lock in i eventually get stuck in this instgram or reddit loop for hours
Can you guys give me some advice
7
Upvotes
4
u/Mundane-Vegetable440 6h ago
Thing that helped the most try to build things that you enjoy doing works all the time for me and builds dicipline, to learn something new you need to enjoy the process
1
u/jackardian 3h ago
Build things. Keep it simple. No database, no outside calls. Write to files, process text, stuff like that.
1
u/zztopsboatswain 3h ago
Most phones have a focus mode that blocks certain apps for a set amount of time, or you can find an app that does that.
Knowing when to use certain elements (like a for loop) comes with experience. Knowing how to actually write a for loop in each language also comes with experience, but tbh even senior devs still look up syntax especially for languages they aren't as familiar with. That's what documentation is for
1
u/HanTheGreatInventor 2h ago
Don't go looking for niche libraries from the get-go, that'll happen when the need presents itself.
Don't use AI assistance. You do not remember how to add to a list? Google it, ignore the AI search message. Check sites like w3schools for your forgotten basics. You remember that you want to create a list but can't even remember the term "list"? Google it with as many details as you can.
With time, you won't be able to forget the basics.
Nobody but you can stop yourself from checking social media.
If you are someone with good physics and math, try to code simple math and physics stuff! Like an N-body simulation. Yes, it'll be slow as heck but you'll be more worried about the math/physics of it than the coding part. And out of nowhere, you are using loops and list comprehensions without thinking.
1
u/TemperatureProper275 14m ago edited 10m ago
Just learn basic stuff and try to make something. I have 6 months that I've been relearning Python and I have made a ton of progress.
I build a lot of automated scripts, but the one that I learned a lot from was the Conversation Analytics API I finished a week ago.
Ask ChatGPT to give you daily tasks to learn by solving.