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

2

u/JaguarMammoth6231 11h ago

Getting errors is normal. You just need to read the error message, understand it, and fix it. Start with the first one, later errors might go away once you fix the first one.

1

u/Glittering-Olive-404 10h ago

This might be a really dumb question and I appreciate your response a lot, but is there any way to understand the error message? I guess it’s because I’m not used to any coding language that I have a harder time understanding it. Would it just be from experience? Thank you again for your response!!

1

u/RSkyhawk172 4h ago

If you don't mind using LLMs, I would suggest copying the entire error message (but not the code block that it happened on) into one and asking to explain it. If that doesn't get you far enough, you can copy the code block in to give it context, but I recommend that you specifically instruct it not to generate the right code for you and instead have it tell you what the problem is in plain language so that you need to fix it yourself. That way you'll learn what the mistake was and can learn how to avoid it.