Cài đặt máy tính của bạn
Trang này cần trình duyệt gần đây (hỗ trợ SharedArrayBuffer). Vui lòng cập nhật Chrome, Edge, Firefox hoặc Safari lên phiên bản mới nhất.
English
Run Python on your own computer
- This playground is perfect for learning — but it lives in your browser.
- For your own projects, it helps to set Python up on your computer.
- It takes about 10 minutes, and you only do it once.

English
Step 1 — Install Python
- Go to python.org/downloads and download the latest Python 3.
- Run the installer.
- On Windows, tick "Add python.exe to PATH" before you click Install, if the installer shows that box — this matters.
English
Step 2 — Install VS Code
- VS Code (Visual Studio Code) is a free, popular code editor from Microsoft.
- Download it from code.visualstudio.com and install it.
- This is where you will write and run your code.
English
Step 3 — Add the Python extension
- Open VS Code and click the Extensions icon on the left.
- Search for Python (the one by Microsoft) and click Install.
- It adds run buttons, colours, and helpful hints for Python.
English
Step 4 — Check it worked
- Open a terminal (in VS Code: Terminal → New Terminal) and type:
python --version
- You should see something like
Python 3.12.0. If you do, you are ready. - On a Mac, type
python3instead ofpython, here and in the steps below.
English
Step 5 — Run your first file
- In VS Code, make a new file called
hello.pyand type:
print("Hello from my own computer!")
- Press the ▶ Run button (top right), or type
python hello.pyin the terminal. - You just ran Python outside the browser.