โ† Raspberry Pi learning path
Raspberry Pi ยท Module 4 of 10

Python programming on the Pi

Write Python programs for projects.

๐Ÿ“– Key ideas

  1. Python 3 comes preinstalled.
  2. Use Thonny IDE or VS Code.
  3. Install packages in virtual environments (python3 -m venv).
  4. Libraries: gpiozero, picamera2, requests, flask.
  5. Run scripts: python3 app.py.
๐Ÿ’ก Real-life example: Python is the Pi's native tongue: friendly words that control hardware and the internet.
ThonnyBeginner Python IDE
gpiozeroSimple GPIO library
Virtual environmentIsolated Python packages
picamera2Camera library