Python: a development environment (Windows, Mac, Linux)
Install free Python 3 on Windows, Mac and Linux, then pick an editor you can live with: VS Code, Thonny, or Pydroid 3 when you practice on a phone.
Getting started
Home Assistant
Buying
Install free Python 3 on Windows, Mac and Linux, then pick an editor you can live with: VS Code, Thonny, or Pydroid 3 when you practice on a phone.


AI-generated illustration
Some links on this page are affiliate links. The button opens Amazon so you can check today’s price.
Choosing your environment at the start saves frustration: a current interpreter, an editor you can read, and, on a phone, an app that really runs Python 3.
The overview of the track is the Python course. The next lesson is variables and printing.
python or py command in the terminal)..py files with syntax highlighting and a simple way to run them.python my_script.py.python in Command Prompt or PowerShell.py --version
or
python --version
Visual Studio Code is free, easy to get into, and widely used in teaching. After you install it:
hello.py, type print("OK") and run it with the ▶ button or the built-in terminal.Thonny is built for teaching: a simple interface, no heavy setup, and a debugger built in. It fits if you want an all-in-one tool and fewer windows.
brew install python) if you are comfortable in the terminal.python3 --version (on a Mac the command is often python3).A PC is still the most comfortable place for a large project, and you can still practice on Android:
python package) suits people who are comfortable on the command line. It is more technical.On Android, stick to small scripts and short exercises. For the rest of this series, a PC makes copy-paste and files easier.
Create a file hello.py:
print("Educational robot — Python OK")
Run it from your editor or from the command line:
python hello.py
or python3 hello.py on a Mac.

--version).exo1.py that prints three lines: your first name, your age (a number), and a sentence of your choice.These links are searches on Amazon. The button opens Amazon so you can check today’s price.
Go on to lesson 2: variables and printing — Python variables and printing.
Was this page helpful?
Thank you!
What should we improve?
Torn between two models or stuck on a build? Drop us a line and we will get back to you by email.
Cookies and analytics
We use Google Analytics 4 to understand how the site is used (page views, navigation). It is only switched on if you accept. Declining does not stop you using the site. More: cookie settings and privacy policy (in French).