Module 1 · Lesson 1

What is Programming?

Understand what programming is, how computers execute instructions, and write your very first program.

Audio: What is Programming?
0:000:00

What is Programming?

Programming is the art of giving precise instructions to a computer. Think of it like writing a recipe — except your reader follows every step literally, with zero guesswork.

Why Learn to Code?

Every app on your phone, every website you visit, and every game you play was built by someone writing code. Programming is the most powerful creative tool of our era because it lets you build things that can reach millions of people instantly.

Whether you want to build websites, analyze data, create games, or automate boring tasks — it all starts with the same fundamentals you'll learn here.

How Computers Execute Code

A computer reads your code line by line, from top to bottom. Each line is an instruction. The computer doesn't think, assume, or improvise — it does exactly what you tell it to.

This is both the challenge and the superpower of programming:

  • Challenge: You must be precise. A single typo can break everything.
  • Superpower: Once you get it right, the computer executes your instructions perfectly, every single time, at incredible speed.

Your First Program

Every programmer starts with the same program: printing "Hello, World!" to the screen. It's a tradition that dates back to the 1970s.

Use the code editor below to run your first program. Click the Run button and watch the output appear. Try changing the message to say something different!

Key Takeaways

  1. Programming is writing precise instructions for a computer to follow
  2. Code executes top to bottom, one line at a time
  3. Computers are literal — they do exactly what you tell them, nothing more
  4. Every language has its own syntax, but the concepts are universal

Try It Yourself

Modify the code in the editor to:

  • Print your own name
  • Print three different messages on three different lines
  • Experiment! You can't break anything.

Code Playground

Edit the code below and click Run to see the output. Switch between languages using the tabs.

Loading editor...