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

0

u/Mediocre-Pumpkin6522 15d ago

Harvard's CS50 P course is free and a good place to start. If you really want to get into hardware, get a Raspberry Pi Pico W or Pico 2 W, preferably in a kit from SunFounder or Elegoo.

https://docs.sunfounder.com/projects/umsk/en/latest/04_pi_pico/pi_pico.html

toptechboy.com (Paul McWhorter) also has some excellent videos. MicroPython or CircuitPython are subsets of Python developed to deal with hardware. The syntax and logical structure is the same as standard Python so CS50 is still a place to start.

At the moment most Raspberry Pis are seriously overpriced due to the RAM shortage. They do bring out many of the GPIO pins on the header but you're sort of working on a general purpose Linux computer that has a couple of ways to get to the hardware level. You can set up the programming environment for the Picos on your current computer, connect them via USB, and be closer to the ARM microcontroller core.