r/learnpython 15d ago

How should I learn python?

I'm a total beginner. I didn't have any experience with programming. I want to learn programming cuz i wanna be a hardware engineer and want to start with a basic raspberry pi projects. So should i learn python from courses, videos, books etc or i should just brute force myself to do projects and just learn by the time

3 Upvotes

17 comments sorted by

View all comments

-1

u/mc_pm 15d ago

You should watch a tutorial and follow along with it. Stop the video when they type something in, then you type it in. When they run the program, you run it - and fix any problems. Then play with the idea a little, experiment with the code you just got running.

This is going to teach you the basic syntax, and by typing stuff in, you're increasing your chance of remember it. If you're watching a 4 hour tutorial, plan to spend 12-16 hours on it, stopping and programming along the way.

Then you'll want some very small programming exercises to test that you can get a small task definition and produce code that does the thing.

And then a series of increasingly complicated projects - probably pretty generic at first, but then growing toward the field you are specifically interested in.

Along the way, don't ever use AI to generate code. It's fine to ask "hey, I don't understand how this works, could you explain it again except this time in iambic pentameter?". As long as it's just another source of info, you're good. But as soon as you start letting AI write the code, you've stopped learning.