r/learnpython • u/Much_Pipe_2752 • Sep 01 '24
Dumb question but I’ll still ask it.
How do you stay motivated while learning Python, or really anything in general? I feel like I'm not improving, and I forget what I've learned when I try to go back and code. The most frustrating part for me is the indentation—it’s challenging, but I try to embrace the process. I love sports and hope to work on cool projects in the future. I’ve been "coding" for about 3-6 hours a day, but it seems like I forget everything I learned the next day. Maybe I’m exposing myself to too much Python content. I could really use some encouragement.
3
u/Diapolo10 I write code for a living -- https://github.com/Diapolo10 Sep 01 '24
The most frustrating part for me is the indentation—it’s challenging, but I try to embrace the process.
I find that surprising; usually people have more trouble with writing program logic than keeping the indentation correct. The rules are really quite simple.
How do you stay motivated while learning Python, or really anything in general? I feel like I'm not improving, and I forget what I've learned when I try to go back and code.
People are motivated by different things so there isn't a universal rule or anything, but it definitely helps to have some goal in mind.
If you don't mind telling us, what made you start learning Python?
1
u/Much_Pipe_2752 Sep 01 '24
I find that surprising; usually people have more trouble with writing program logic than keeping the indentation correct. The rules are really quite simple.
I just started learning about three weeks ago, and I’m spending a lot of time on if statements. I can handle three if statements without any issues, but when I try to add more, I either mess up the indentation, it prints the wrong statement, or sometimes it even prints two statements.
If you don’t mind telling us, what made you start learning Python?
I’m really into sports and love analyzing player performance and teams. That’s why I want to learn Python it will help me explore sports data and work on exciting projects. I won’t hold onto this but my dream job is to break in sport analysis.
2
u/SquiffyUnicorn Sep 01 '24
Are you using an IDE like VSCode or pycharm? While they do ramp up the learning curve a bit, they do highlight the indentations much more clearly.
While I’m mainly motivated by the idea of doing something awesome in Python, I do seem to get some enjoyment out of just tinkering. I do not enjoy trying to work out how to use poorly documented code, but I do enjoy the building (and even debugging sometimes) process.
2
u/Much_Pipe_2752 Sep 01 '24
Using pycharm I bought the premium and at one point it had like auto completion at first it got annoying bc it was doing the job for almost and I felt like I was pressing tap too many times and one day I messed around in the settings now i don’t have redlines when there is error or misspells or anything I messed it up. I asked ChatGPT how to put auto completion back on but it didn’t work lol
2
u/SquiffyUnicorn Sep 01 '24
I try not to use chatGPT for this stuff.
Google is good- much better to get good at Google than chatGPT.
Try this
https://www.jetbrains.com/help/pycharm/auto-completing-code.html
-caveat- I don’t use pycharm so this is a guess.
1
u/Mysterious-Rent7233 Sep 01 '24
I’m really into sports and love analyzing player performance and teams. That’s why I want to learn Python it will help me explore sports data and work on exciting projects. I won’t hold onto this but my dream job is to break in sport analysis.
Have you tried doing any data exploration so far?
1
Sep 01 '24
[removed] — view removed comment
3
u/Much_Pipe_2752 Sep 01 '24
Beware of ChatGPT
more on to this because I use ChatGPT for everything when it comes to python. You might be right i shouldn’t depend on it to much but I’ll work on it
4
Sep 01 '24
This is why you're fprgetting things. If you don't practice recalling things yourself and just get chatgpt to tell you then you're not actually learning how to code.
Try to solve a probelm without chatgpt, then try doing again from scratch the next day, you'll see your learning skyrocket.
I use chatgpt too, but only as a documentation reader/generator.
1
1
u/Anxious-Sleep124 Sep 01 '24
I am also learning Python currently, my motivation is to get a better job. I have tried learning Python in past and failed, but this time I am taking it slow, I try to learn for at-least for an hour everyday and I take break after each 20 minutes.
I find this helps me a lot to focus better and retain what I have learnt..
Try it may be it will help..
2
u/Much_Pipe_2752 Sep 01 '24
The last few days I’ve been writing notes and going through them before bed. But honestly I’ll try that. Taking mini break… I be in pycharm for hrs if I have nothing to do. It’s like playin video game for me at the moment.
1
u/isnelson51 Sep 01 '24
What helps me enjoy coding is this. Do a project, any project for that matter that works for the most part. Then as you continue to continue to learn, come back to that same project say a month or so later. You will do things a whole lot differently my you enhance your toolbox. This also makes it fun as light bulbs pop up in your head on how you can apply new techniques to current and future projects.
Basically, just code something and use that to build on.
1
u/skyfallen7777 Sep 01 '24
I am in the same boat. Learning it daily. I went through the pcc book, except the projects. And reviewing the concept now. I am using gpt to get exercises to solidify concepts in my head. Parallel to that I am doing my own project, but very slow for now. I want/need to solidify concepts. I also feel like forgetting what I learned few weeks back, but that should not be the case when it becomes a machinery tasks. So keep going forward.
1
1
1
u/camilla-g Sep 02 '24
If you feel like you’re not improving and you’ve forgotten what you have already learnt, Create a checklist of everything you want to learn in Python and set a deadline next to each item. Cross off each item when you’re sure you’ve learnt it. Create an Action Plan using the STAR Method (Situation, Task, Action, Result). Create for yourself SMART Objectives (Specific, Measurable (key progress indicators), Achievable, Realistic, Time-bound). Create for yourself a portfolio of programs. Over time you will see just how much you’ve accomplished. I recommend reading Python Docs in the Help Menu in IDLE (Python’s Integrated DeveLopment Environment). It has the Python Language Reference that lists every module and method used in Python. Also, look at Turtle Demo in the Help Menu which has sample code for the Turtle Examples. Turtle is Python’s Graphics module. A Python Pocket Guide is also a useful Quick Reference. It is best to take a systematic approach to learning programming allowing you to keep track of your progress.
1
u/trollsmurf Sep 02 '24
You need concrete projects to develop. Could be anything as long as it's a complete solution somehow, possibly only for your own use.
Things like indentation will become second nature, and editors will help with that and warn about wrong syntax and such.
-1
u/Nolan-Harper Sep 01 '24
One word. Chat-GPT. Believe the hype. Even the free version. Python is it's native language, it'll talk about it all day long, long detailed answers to even the most trivial of questions.
1
u/Much_Pipe_2752 Sep 01 '24
I actually have ChatGPT Plus and I’m using it a lot. I’ll be honest, I’m not sure if I’m using it the right way but I mostly use it to correct my code and point out what I did wrong and I love that.
1
u/Nolan-Harper Sep 01 '24 •
![]()
. . . not sure if I’m using it the right way.
Just be aware that it will never get annoyed or bored no matter what. Short simple questions, long-winded questions, 10 questions on exactly the same thing but asking for an alternative explanation. Also, posting code and asking it to add very detailed comments to make it understandable to a non-programmer.
1
2
u/SquiffyUnicorn Sep 01 '24
My main problem with chat gpt is that it isn’t flexible- it won’t rewrite code to use a specific library very well.
This is symptomatic of it being a language model with no inherent understanding.
Once you work out how to google coding issues properly you’ll be much better off.
8
u/m0us3_rat Sep 01 '24
find something ..fun.. to do.
mini game , some automation etc. anything that tickles your fancy.
the reality is very simple.. if you are reluctant to do something.. you ain't going to put any interest behind it.
if you are interested in something you are most likely to give 200% easily and not even feel it.
so ..find an angle that you can have fun with and go crazy.
also there is a high chance that this might just not be for you.. it's after all a personal choice.
so figure out if you can make it fun or you are just going to waste your time.