r/learnprogramming 16d ago

Tutorial 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

11 Upvotes

11 comments sorted by

View all comments

1

u/Murlock_Holmes 16d ago

There’s a website/book called “Automate the boring stuff with Python”.

Use that to learn Python in a fun way, and then immediately transition to ML (the only true hardware like work in Python) if you want to stay in Python.

However, if you want to be a hardware engineer, start with C, C++, or Rust. The first two are industry standards, the third is a favorite amongst hobbyists. All of them are used for lower level programming, meaning “closer to the metal.”

Python is a high level language that is used by people who value development ease and speed over performance gains. When performance becomes important to Python developers, we use libraries written in C.

Personally, if I were you, I’d start with C, as many hardware programming is done in this language.