This tutorial could not be loaded.
Loading tutorial...
Interactive tutorial
Install Python 3 on your Windows, macOS, or Linux computer, check that it works, and use IDLE to write and run your first program. You will save a Python file, personalize a greeting with keyboard input, and fix common beginner mistakes. You need an internet connection and permission to install software; no programming experience is required.
Step 1 of 8
2 min
Meet the Tools You Will Use
Identify the local tools that turn Python instructions into output and choose the installation route for your operating system.
Step 2 of 8
10 min
Install Python for Your Operating System
Install a supported stable Python 3 runtime and IDLE using the route for your operating system.
Step 3 of 8
4 min
Check Python and Open IDLE
Verify the Python launcher from a normal terminal, recognize a successful Python 3 version response, and open the IDLE Shell.
Step 4 of 8
3 min
Print Your First Message
Use the IDLE Shell to display a message and separate the prompt, Python code, and output.
Step 5 of 8
5 min
Save and Run hello.py
Create, save, run, edit, and rerun a reusable Python program with IDLE.
Step 6 of 8
5 min
Make the Program Greet You
Turn hello.py into a program that asks for a name and prints a personalized greeting.
Step 7 of 8
4 min
Fix Common First-Program Problems
Use error messages and program behavior to make focused corrections in your first Python program.
Step 8 of 8
6 min
Complete and Check Your First Program
Finish and verify a reusable personalized greeting program in your local `first_python` folder.
Video Courses
recommended
recommended
Advanced
Advanced
Advanced
Ideal for beginners
Ideal for beginners
Thousands of online courses in video, ebooks and audiobooks.
To test your knowledge during online courses
Generated directly from your cell phone's photo gallery and sent to your email
Download our app via QR Code or the links below:.
+ 10 million
students
Free and Valid
Certificate
60 thousand free
exercises
4.8/5 rating in
app stores
Free courses in
video and ebooks