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/SharkSymphony 10h ago

Errors are a major part of every programmer's existence. You have to learn to think the way the computer thinks. This is an essential part of the learning process!

What error are you getting? What code are you typing?

2

u/Glittering-Olive-404 2h ago

Hello!!!! Thank you so much for your willingness to help, I actually figured it out since everybody was encouraging me to take a step back and actually Code instead of just watching videos. I was taking the wrong approach to learning how to code and the replies made me realize that. I had to just break everything up into shorter lines so I could comprehend it better and begin to understand where I went wrong!

•

u/SharkSymphony 14m ago

Yup, take it one step at a time until you get better at it – and usually even then! Remember the Zen of Python:

> Beautiful is better than ugly.
> Explicit is better than implicit.
> Simple is better than complex.
> Complex is better than complicated.
> Flat is better than nested.
> Sparse is better than dense.
> Readability counts.