Sythra

Article

Your first Python program: say hello in 5 minutes

The easiest possible start: install nothing fancy, type a few lines, and see Python talk back to you.

Sythra Writer· Jul 24, 2026· 2 min read
ShareXLinkedIn

This is the gentlest way to start Python.

No folders of files. No AI keys. No complicated setup.
Just: open Python → type a little → see a message.

If you can follow a recipe, you can do this.

What you need

Python 3 on your computer. Check in a terminal:

python --version

If that fails, try:

python3 --version

You should see something like Python 3.11 or 3.12.
If Python is missing, install it from python.org and tick Add Python to PATH on Windows.

Step 1 — Open a place to type

Option A (simplest): open a terminal and type:

python

You should see >>>. That means Python is waiting for you.

Option B: create a file called hello.py in any folder (Notepad, VS Code, or Cursor is fine).

We will show both.

Step 2 — Print a message

Type this (or put it in hello.py):

print("Hello, Sythra!")

Then:

  • In the >>> prompt: press Enter
  • Or from a file: run python hello.py

You should see:

Hello, Sythra!

What happened?
print(...) means “show this on the screen.”
The text inside quotes is a string — just words for the computer.

Step 3 — Use a variable (a labeled box)

A variable is a name that holds a value.

name = "Asha"
print("Hello,", name)

Output:

Hello, Asha

Change "Asha" to your name and run it again. Same program, your message.

Step 4 — Ask a question

name = input("What is your name? ")
print("Nice to meet you,", name)
  1. Python asks for your name
  2. You type and press Enter
  3. It greets you

input(...) means “wait for the human to type something.”

Step 5 — Tiny full program

Save as hello.py:

print("Welcome!")
name = input("What is your name? ")
print("Hello,", name)
print("You just ran your first Python program.")

Run:

python hello.py

That is it. You wrote a real program.

If something goes wrong

What you seeWhat to try
python not foundUse python3, or reinstall and add to PATH
Red error about quotesMake sure quotes match: "Hello" not "Hello
Nothing happensMake sure you saved the file, then ran python hello.py from that folder

What you learned

  • print shows text
  • Strings live in quotes
  • Variables store values
  • input reads what you type

Next easy wins (when you want them):

Or practice step-by-step inside Sythra.

Five minutes. One print. You’re a Python beginner now — for real.

Keep reading

Related articles

Newsletter

Get new articles

Free essays on learning, Python, and ML — no account required. We’ll only email when there’s something worth reading.

Your first Python program: say hello in 5 minutes · Sythra Articles