r/PythonLearning • u/jazzz2323 • 3d 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
11
Upvotes
8
u/Mundane-Vegetable440 3d 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/CraftOver1 3d 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.
1
u/jackardian 3d ago
Build things. Keep it simple. No database, no outside calls. Write to files, process text, stuff like that.
1
u/zztopsboatswain 3d 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 3d 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 3d ago edited 3d 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/drakhan2002 3d ago
Get rid of social media if you can't concentrate. Use sites like Cousera, Udemy, Code Academy, etc. to learn Python.
0
u/ShamanBodian1573 3d ago
Try to start from 15 minutes a day, take certain time for it, and do your best to start your 15 minutes session in this time. Then you'll get focused and will work longer than 15 minutes. Leave your phone in another room. + You may try a simple hack: turning on a desk lamp when doing study session (like Pavloving yourself). Plus try to find what would you like to create (ik inspiration might catch from super unexpected things)/something that solves your personal problem