โ† Back to Python Course
๐Ÿ Python Playgroundยท15 minยทBeginner
๐Ÿ‘‹

Meet Python

Say hello to your first programming language!

Learn what Python is, what programming means, and write your very first line of code: print("Hello!")

๐Ÿ“–

What we are learning

Python is a programming language โ€” a way to give instructions to a computer. It is one of the most popular languages in the world because it is easy to read and write. Today you will write your first Python program!

๐Ÿ’ก Think of it like this:

Think of Python like a recipe. You write down steps in order, and the computer follows them exactly. If you say "print Hello", the computer prints Hello. Simple!

๐ŸŒŸ

Why it matters

Every programmer starts somewhere. Your first program might be just two words, but it opens the door to building games, apps, websites, and anything you can imagine.

Where you see this in real life:

  • โœ“YouTube, Instagram, and Spotify all use Python behind the scenes
  • โœ“Scientists use Python to study space, weather, and medicine
  • โœ“Game developers use Python to build and test games
๐ŸŽฏ

By the end, you can:

  • 1.Understand what Python is and what it does
  • 2.Write your first print() statement
  • 3.Run Python code in the playground
๐Ÿ”ค

New words

Pythonprintstringprogram
๐Ÿ
If you could make the computer print any message to the screen, what would you make it say?
๐Ÿค“

Fun Fact!

Python was named after the comedy group Monty Python, not the snake! But the snake mascot is cuter. ๐Ÿ

๐Ÿ What is Python?

Python is a programming language โ€” a special way to give instructions to a computer. It is super popular because it reads almost like English. Companies like Google, Netflix, and NASA all use Python!

The most famous first program in any language is called "Hello World". It just prints the words "Hello, World!" to the screen. Let us try it!

โœจ Your First Program

The print()command tells Python to display something on the screen. Whatever you put inside the parentheses (in quotes) gets printed!

๐ŸTry it yourself!
main.py
โ— Output
Click Run to see your first Python output!

๐Ÿ’ก Try changing "Hello, World!" to your own name. What happens?

๐Ÿ“ Print Multiple Lines

You can use print() as many times as you want. Each print() puts its message on a new line!

๐ŸPrint multiple messages
main.py
โ— Output
Click โ–ถ Run to see the output!
๐Ÿ
Psst! You can print emojis too! Try print('๐Ÿ Python is fun!')
๐Ÿง 

Quick Quiz!

+10 XP

What does the print() command do in Python?

๐Ÿ
Finished the lesson? Click the button to mark it complete and earn XP!