r/learnpython • • 11h ago

How Do I Actually Learn Python?

I’m sorry, this is probably a really dumb question but I’m picking up python as a hobby to learn between work and classes. I’ve never coded before and I’m not interested in doing it career-wise or anything like that. I just want to be able to understand the fundamentals of it. I’ve gone through many online courses as well as YouTube tutorials. I always get it in theory, when they explain the strings, integers, and whatnot, but when I actually go to write lines of code, I always find myself getting error codes, even when I follow the tutorial exactly, which honestly baffles me.

Does anybody have any tricks on how to deal with this learning curve? Something that might be extremely common knowledge to everybody else that I’m missing? Or any resources they could provide? I really want to learn how to code, I’m just not sure how I begin troubleshooting something that I don’t understand, if that makes sense.

16 Upvotes

55 comments sorted by

View all comments

6

u/xselliehx 10h ago

hey :) fellow python student here! :) i actually had the exact same problem and what solved it for me was CS50P lectures from Harvard. David Malan is MARVELOUS teacher and the most important part is not to watch it through youtube as that is theory / not you doing the practicals. Do it via their own website or via the edX website (can be for free, just dont require the certificate) and then you have all the problems for you to solve, they go from easier to the more challenging ones etc. What was very helpful was their own chatbot, small duck that actually doesnt give you the answer right away, but leads you towards the correct solution so you have to solve it. Very very helpful! :) one of the best advices i got was to actually start coding even if i dont know much. They are doing it in their own VS Code so then the transition for your own possible projects is not that challenging :) hope I helped at least somehow, enjoy your study of python!

2

u/Glittering-Olive-404 10h ago

Thank you so much! I guess where I went wrong was from watching videos and jumping straight into coding instead of doing practicals (which i honestly didnt know they had, lol) thank you so so much for your help i appreciate it a lot !