Teyro
CoursesFor creatorsBlog
Log inGet started
Tey Mascot
LOADING.

Every expert you admire was once a beginner who refused to quit.

Teyro

The fun way to finish learning coding and AI: short daily lessons with streaks, leagues and friends.

Get the app

Learn

  • All courses
  • Learn coding
  • Learn AI
  • Learn online
  • How it works
  • Leagues
  • Get the app

Creators

  • Teach on Teyro
  • How teaching works
  • Teach coding online
  • Teach AI online
  • Join as a Founding Creator
  • Creator log in

Resources

  • Blog
  • Features
  • Use cases
  • Compare
  • FAQ

Legal

  • Terms of Use
  • Privacy Policy

© 2026 Teyro · support@teyro.app

HomeBlogSkill Building & Careers
Skill Building & Careers

How to Install Python and Run Your First Program (Windows, Mac)

How to install Python on Windows or Mac, check it works, choose an editor and run your first program. Or skip installing and learn Python in your browser.

The Teyro TeamOct 25, 20262 min read
On this page9 sections
  1. Direct answer
  2. Install on Windows
  3. Install on Mac
  4. Run your first program
  5. Pick an editor
  6. Common problems
  7. Or learn without installing
  8. Next steps
  9. The bottom line

Installing Python is easy, but the first screens confuse many beginners. Here is the process step by step, and a way to learn without installing anything.

Direct answer

Download Python from the official site, python.org. On Windows, tick Add python.exe to PATH in the installer, then install. On a Mac, run the installer. Open a terminal and type python --version (Windows) or python3 --version (Mac) to check. Then run a file with python hello.py.

Install on Windows

  1. Go to python.org/downloads and download the latest Python 3 installer.
  2. Open the installer. On the first screen, tick "Add python.exe to PATH". This is the step beginners miss.
  3. Choose Install Now and wait for it to finish.
  4. Open Command Prompt or PowerShell and type:
python --version

You should see a version number such as Python 3.x.x.

Install on Mac

  1. Download the macOS installer from python.org/downloads and open it.
  2. Follow the steps.
  3. Open Terminal and type:
python3 --version

On a Mac, the command is usually python3, not python.

Run your first program

  1. Create a file called hello.py in a folder you can find.
  2. Put this inside:
print("Hello, world!")
name = input("What is your name? ")
print("Nice to meet you,", name)
  1. Open a terminal in that folder and run:
python hello.py

(Use python3 hello.py on a Mac.)

Pick an editor

  • IDLE comes with Python. Open it, choose File, New File, and run with F5. It is enough to start.
  • Visual Studio Code is a popular free editor. Install the Python extension to run and debug.
  • Any text editor works: Python files are just text.

Common problems

  • "python is not recognized": you missed the PATH box. Run the installer again, choose Modify or Uninstall, then reinstall with the box ticked.
  • Wrong version on a Mac: use python3.
  • Cannot find the file: your terminal must be in the same folder as hello.py. Use cd folder-name to move.
  • IndentationError: check the spaces at the start of lines.

Or learn without installing

You do not need to install anything to begin. Many courses and online editors run Python for you. Teyro's Python for Beginners course runs real code in the lesson, in your browser and on your phone, so your first program is a tap away.

Next steps

Once it works, follow the 30-day plan, keep the cheat sheet open, and build your first project.

The bottom line

Install from python.org, tick the PATH box on Windows, check the version and run hello.py. If setup puts you off, start in the browser and install later.

Frequently asked questions

How do I install Python on Windows?

Download the installer from python.org, run it, tick 'Add python.exe to PATH' on the first screen, then choose Install Now. Open a terminal and type python --version to check.

How do I install Python on a Mac?

Download the macOS installer from python.org and run it. Then open Terminal and type python3 --version. On a Mac the command is usually python3.

Do I need to install Python to learn it?

Not at the start. Browser-based courses and online editors run Python for you. Install it when you want to build your own projects on your computer.

What is the best editor for Python beginners?

IDLE comes with Python and is enough to start. Visual Studio Code is a popular free editor with a Python extension when you want more.

Skip the setup and just learn

Teyro's Python for Beginners course runs real Python in your browser, with nothing to install. Free to start.

See the Python course

Free to start · No credit card needed

Share

Written by

The Teyro Team

Learning Team at Teyro

We build Teyro — an AI-powered learning platform that turns skill-building into a daily habit through bite-sized, gamified lessons. We write about the learning science and study strategies that shape our product.

More from The Teyro Team

On this page

  • Direct answer
  • Install on Windows
  • Install on Mac
  • Run your first program
  • Pick an editor
  • Common problems
  • Or learn without installing
  • Next steps
  • The bottom line

Keep reading

Skill Building & Careers

Best Careers for 2027: High-Demand Jobs and the Skills to Get Them

The best careers for 2027 and the jobs most in demand, based on BLS and World Economic Forum data, plus the skills each path needs.

Oct 30, 20263 min read
Skill Building & Careers

Best Certifications for 2027: Tech, Data, Cloud and Business

The best certifications for 2027 in cloud, security, data, project management and AI, who each one suits, and when a portfolio matters more.

Oct 30, 20263 min read
Skill Building & Careers

Best Programming Language to Learn in 2027 (for Your Goal)

The best programming language to learn in 2027 depends on what you want to build. Compare Python, JavaScript, TypeScript, SQL and C.

Oct 30, 20263 min read