Python Tutorial: Getting Started
Write your first Python program. No setup required — just you and the editor.
Your first Python program
Python is one of the simplest languages ever made. There is no `main` function. No curly braces. No semicolons. You just write code and it runs.
Ten steps. Each one takes about 30 seconds. Let's go.
What you'll learn in this Python getting started tutorial
This interactive Python tutorial has 10 hands-on exercises. Estimated time: 15 minutes.
- Welcome to Python 🐍 — Welcome! You just picked one of the best programming languages on the planet.
- Make it say your name — Now let's make it personal.
- Say more things — Here is something cool — you can print as many lines as you want. Each `print()` creates a new line of output.
- Three things at once — Alright, let's go bigger. Three lines.
- Comments — your secret notes — A line starting with `#` is a **comment**. Python skips it completely — it is just a note for humans.
- No main, no semicolons, no drama — Quick comparison to show you how chill Python is.
- Spot the bug — Time to play detective. This program has a bug. It will crash if you run it.
- Another sneaky bug — Python is case-sensitive. `Print` and `print` are completely different things to Python.
- Write it from scratch — No starter code this time. The editor is empty. You are writing the whole thing.
- Chapter 1 complete! — Last one. Let's end this chapter with a bang.
Python Getting Started concepts covered
- Your first Python program