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

2

u/Glittering-Olive-404 2h ago

Definitely not going to use ai, regardless of how anybody feels about it I just feel like its counterintuitive to use something that will just solve everything for me rather than trying to learn and figure out where I went wrong myself! I’m trying to code but I got discouraged, thank you!

1

u/av8rgeek 1h ago

AI can be useful for learning how something works or learning how the syntax works, stuff like that. There is also benefit in knowing the PEP standards and the various python tutorial/reference sites.

1

u/Glittering-Olive-404 1h ago

100% there’s benefits in using AI when it comes to coding, but I think when I’m fed information as well as a solution (like the youtube videos) I tend to not process the information, I just copy it. For now, as a beginner, I think its best for me to properly digest my information so I can thoroughly understand what I’m doing right and wrong! As scary as it sounds to me right now, I’m going to try and do a project using some references from the resources that other people have given me in this thread and see how it goes! Thank you for your input again, I appreciate it greatly

1

u/av8rgeek 1h ago

I didn’t say to have it solve. :) have it explain why something does what it does. Learn the logic of what is happening. Ultimately, programming is just a set of logical instructions. Learn those concepts. A for loop in Python is the same thing in C, C++, Java, Perl, JS, Lua, C#, etc. Have AI help you understand what a specific piece of code does. Tell it not to fix the code. Tell it to give you hints. You have the right idea to write your own code. Having websites and Google searching is great. AI, used correctly, can be another valuable tool. (Yes, I know this contradicts what I initially said, but I think you got my point well.)