Interactive tutorial

Install Python and Write Your First Program

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.

  • Level: Beginner
  • Duration: approx. 39 min
  • 8 steps
Install Python and Write Your First Program

What you will go through

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. Step 5 of 8 5 min Save and Run hello.py Create, save, run, edit, and rerun a reusable Python program with IDLE.
  6. 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.
  7. 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.
  8. 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

Courses related to this topic

See all video courses

Download the App now to have access to + 5000 free courses, exercises, certificates and lots of content without paying anything!

  • 100% free online courses from start to finish

    Thousands of online courses in video, ebooks and audiobooks.

  • More than 60 thousand free exercises

    To test your knowledge during online courses

  • Valid free Digital Certificate with QR Code

    Generated directly from your cell phone's photo gallery and sent to your email

Cursa app on the ebook screen, the video course screen and the course exercises screen, plus the course completion certificate