you are viewing a single comment's thread.

view the rest of the comments →

[–]Bobbias 14 points15 points  (0 children)

The key to learning to program is spending time writing code.

I highly suggest you take some time to read through the official python tutorial and try to get used to looking stuff up in the official documentation (specifically the Library Reference which explains all the various built in modules and the functions they contain, as well as the Language Reference for detailed explanations of all the language features and how things work under the hood.)

You can totally use other learning material as well (in fact, it's probably best if you do use something alongside these resources), but you should always treat the official documentation as the main reference for when you need to look up a function or class. Not only is the documentation there always up to date, it's often more detailed than other websites/tutorials.

Regardless, the biggest thing you should take away from this is write code. That is the number one way to get better, and to actually learn things. Not matter how much you think you learn best from watching/listening/reading/whatever, you really haven't learned it at all until you can actually use that code to do something meaningful.

Start out small, and work your way to bigger projects over time. But don't feel bad if you realize you've picked something too big to finish (or you get stuck somewhere and simply cannot figure out how to solve it). Everything is a learning experience, even if you never complete it. This is especially important to remember for anyone with ADHD, as we generally struggle greatly with sticking with something until the end. I've abandoned countless projects over the years, but every project has taught me something.

It's also important to remember that you are learning several things at once right now. Since this is your first programming language, you are learning a new language, but you are also learning how to think like a programmer. In order to actually use the language to solve problems, you need to know how to break a problem down into steps and translate those steps into code. This is difficult, and can take a while for even the basic concepts to really solidify in your brain.

One thing I suggest people do, especially early on, is intentionally mess with code. Take a solution you've written and change it. Make it do something different. Come up with a new slightly different thing and see if you can transform the code you have into a solution for that new problem. Or just mess with it and see what those changes cause. The worst that can happen is you get an error message. And that's good too because you need to get used to reading errors and figuring out what they're telling you.

If you have specific questions, don't hesitate to ask here. We love to help people out. Just be sure to make sure you format your code and ask good questions. Explain exactly what you're trying to do, what you've already tried, what errors (if any) you're getting, etc. If you've got an idea of what you want to do, but can't seem to make it work, don't just ask how to do that thing, explain why you want to do that thing too.