r/PythonLearning • u/jazzz2323 • 9h 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 9h 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 6h ago
Build things. Keep it simple. No database, no outside calls. Write to files, process text, stuff like that.
1
u/zztopsboatswain 5h 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 5h 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 2h ago edited 2h 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.
1
u/CraftOver1 1h ago
Document everything new you learn, like variables, functions, classes etc.
when you document it you got two advantages (It works for me every time):
But the important thing is that understanding how each function and syntax works beats just memorizing them, so try to understand them and always use python example with it.
Small steps helps with your progress, each day consist about 15 minutes to learn python, that 15 minute is non negotiable and slowly raise that 15 minutes into 30, then 60 and so on.
To learn something faster is to practice is constantly, when you learn something new try to apply it to a project, If the project is idea is bigger the better things you can apply to it.
if you got any AI subscription try to use it to learn python by building complex projects with the AI. for example:
ask the AI to give you project recommendations, and choose one project and tell the AI to build it from scratch for YOU, when he is done building it, you are going to tell him that you guys are going to start from scratch to build it together line by line and each line you don't understand ask him what that line means and how it works.
That's how i learned python so far, i hope it helps you.