🔍 Observe Python

See what Python code does before learning the rules

📍 Overview 🔍 Observe 💡 Understand ✏️ Practice

Python in Action

Observation 1: The print() function

print("Hello, World!") print("My name is Python") print(42)
Hello, World!
My name is Python
42
🤔 What do you notice? How does Python show different types of information?
Think about: print() displays whatever is inside the parentheses. Text needs quotes, numbers don't!

Observation 2: Python as Calculator

print(5 + 3) print(10 - 4) print(6 * 7) print(15 / 3) print(2 ** 3) # What's this?
8
6
42
5.0
8
🤔 Can you guess what each symbol does? What might ** mean?
Think about: + - * / are math operations. ** is exponent (power)! 2**3 = 2³ = 8

Observation 3: Storing Things

name = "Alice" age = 15 height = 1.65 print(name) print(age) print(height)
Alice
15
1.65
🤔 What's happening here? How does Python remember these values?
Think about: Variables are like labeled boxes where you store information. = puts values in the box.
Continue to Understanding →