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

Show parent comments

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!!

2

u/JaguarMammoth6231 10h ago

Can you give an example?

1

u/Glittering-Olive-404 2h ago

Hello!!! Thank you so much for offering to help, I didn’t see this until now and I was just tinkering around with it during my lecture. I was struggling with the integers a lot because I was trying to condense my lines! I broke everything down and while it looks a lot longer, I think it helped me process where I went wrong and read the code more coherently, I’m going to try to separate all my code for now until I’m proficient enough to condense it! Sorry if I’m not using the right terminology

1

u/JaguarMammoth6231 2h ago

Ok, no problem. Sometimes just trying to get everything organized enough to explain it to someone is enough to figure it out yourself