๐Ÿ 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! ๐Ÿš€