Academy

Introduction

What Is Python?

Python is a programming language. That word — language — is deliberate. Just as English lets you communicate with other people, Python lets you communicate with a computer.

The difference is that computers are extremely literal. They do exactly what you say, nothing more. If you say it wrong, they don't guess what you meant — they stop and complain. This sounds frustrating. It is, at first. But it becomes one of the most reassuring things about programming: the computer never silently misunderstands you.

Python was created in 1991 by a Dutch programmer named Guido van Rossum. His goal was simple — make a language that humans can actually read. He succeeded. Python code often looks so close to plain English that you can understand it before you've ever learned a single rule.

This is why Python is the first language for millions of programmers worldwide, and the dominant language in data science, machine learning, and scientific computing.

Your First Instruction

Every program is a list of instructions. The computer reads them top to bottom and executes them one by one.

The most fundamental instruction in Python is print(). It tells the computer: display this on the screen.

Run it. You should see the words appear instantly below.

Now try changing the text between the quotes to your own name and run it again. The computer will say exactly what you tell it to.

This is the entire basis of programming: you instruct, the computer executes.

What Just Happened?

Let's look at that one line carefully:

print("Hello, World!")
  • print is the name of a built-in command — Python comes with hundreds of these ready to use.
  • The parentheses () tell Python: run this command right now.
  • The text inside the quotes "Hello, World!" is what you're handing to the command.

The quotes are important. They tell Python that Hello, World! is a piece of text to be displayed — not a command to be executed. Without them, Python gets confused.

Notice something: the three lines run in order, top to bottom. Python finishes one instruction completely before starting the next. Programs have a direction, like reading a page.

Numbers Work Too

print() isn't only for text. It can display numbers, and it can even do arithmetic for you.

See the difference? Numbers don't need quotes. When Python sees 42, it recognises it as a number immediately. When it sees 3 + 7, it calculates the answer before printing it.

Text in quotes and numbers without quotes — that distinction is your first glimpse of something called data types, which we will explore fully in the next lesson.

Talking Back to Yourself

You can print multiple things on a single line by separating them with a comma inside print().

Python prints the text, then the result of the calculation, with a space between them automatically. Small detail, genuinely useful.

When Things Go Wrong

Let's make Python complain on purpose.

You'll see an error — SyntaxError. Python found something it couldn't understand and refused to continue.

Errors are not failures. They are the computer telling you precisely where it got confused. Every programmer — at every level — reads error messages constantly. Learning to read them calmly is a real skill, and you will develop it naturally over the coming lessons.

What You Have Learned

You've written your first Python programs. Genuinely.

The key ideas:

  • print() displays anything you put inside it — text, numbers, calculations.
  • Text goes inside quotes. Numbers don't.
  • Python runs instructions top to bottom, one at a time.
  • Errors are messages, not verdicts. They tell you what went wrong and where.

In the next lesson, you will learn how to give the computer a memory — how to store values and retrieve them by name.