Python is a computer programming language that lets you talk to computers and tell them what to do! Just like you use English or Spanish to talk to your friends, programmers use Python to give instructions to computers.
Think of Python like giving directions to a robot:
Python was created by a programmer named Guido van Rossum in 1991. He named it after a funny TV show called "Monty Python's Flying Circus" - not after the snake! 🎭
Python is super popular because:
It's Easy to Read - Python code looks almost like English sentences, which makes it perfect for beginners!
It's Powerful - People use Python to:
It's Fun! - You can make cool projects right away, even as a beginner.
Let's write your very first Python program. It's a tradition in programming to start with "Hello, World!"
print("Hello, World!")
When you run this code, Python will display: Hello, World!
The print() command tells Python to show something on the screen. Whatever you put inside the quotation marks "" will appear!
print("Hi! My name is Alex!")
Try it yourself! Change "Alex" to your own name.
print("Welcome to Python!") print("I am learning to code!") print("This is awesome!")
This will print three lines, one after another.
Try these challenges:
Challenge 1: Write code to print your favorite animal
print("My favorite animal is a dolphin!")
Challenge 2: Print three things you like to do
print("I like to play soccer") print("I like to draw") print("I like to read comics")
Challenge 3: Make Python say something funny!
print("Why did the computer go to the doctor?") print("Because it had a virus!")
print works, but prnt won'tPrint and print are differentIn the next lesson, we'll learn about:
Programming is like learning a new superpower! It might feel tricky at first, but with practice, you'll be creating amazing things. Every expert programmer started exactly where you are now. Keep going, have fun, and don't be afraid to experiment!
Sign in to track your progress