๐ Learn Python Basics
๐ Lesson: Operators
๐ข What Are Operators?
Think of Operators Like Superpowers! ๐ฆธโโ๏ธโก
Operators in Python are like **superpowers** that let us do math! Imagine you are a **math wizard** ๐งโโ๏ธ who can add, subtract, multiply, and divide numbers just by using special symbols.
๐ Meet the Magic Symbols!
Here are the **special powers** you can use:
- โ Addition (+) โ Makes numbers bigger
- โ Subtraction (-) โ Makes numbers smaller
- โ Multiplication (*) โ Makes numbers grow fast
- โ Division (/) โ Splits numbers into equal parts
๐ฎ How Do We Use These Powers?
Letโs say we have two numbers:
x = 8 y = 2
Now, letโs try some **superpower moves!**
# Add them together! result = x + y print(result) # Output: 10
โจ Boom! **8 + 2 = 10**. You just used the **+** superpower!
# Multiply them! result = x * y print(result) # Output: 16
๐ฅ Wow! **8 ร 2 = 16**. That's the **ร** superpower in action!
๐ก Whatโs Next?
Now that you know about operators, let's play a **mini-game** to test your skills! ๐