TalentJR

Lesson 3

Basic Arithmetic Operations

Master mathematical operations in Python

1Arithmetic Operators✨

💻 code
+ Addition: 5 + 3 = 8
- Subtraction: 10 - 4 = 6
* Multiplication: 6 * 7 = 42
/ Division: 20 / 4 = 5.0
// Floor Division: 20 // 3 = 6
% Modulo (Remainder): 20 % 3 = 2
** Exponent: 2 ** 3 = 8

2Working with Variables🎯

💻 code
x = 10
y = 3
print(x + y)  # 13
print(x * y)  # 30
💻 code
Order of Operations (PEMDAS)
Python follows math rules:
result = 10 + 5 * 2  # = 20 (multiply first!)

3String Operations💡

💻 code
name = "John"
greeting = "Hello, " + name  # Concatenation

4Real-World Example🚀

💻 code
# Calculate total price with tax
item_price = 50
tax_rate = 0.08
total = item_price + (item_price * tax_rate)  # 54.0

🎯 Practice Challenges

Master Basic Arithmetic Operations by completing all 3 difficulty levels

🟢 EASY

Basic Arithmetic Operations - Easy Challenge

Start with the basics. Perfect for beginners!

🟡 MEDIUM

Basic Arithmetic Operations - Medium Challenge

Get more challenging. Build your confidence!

🔴 HARD

Basic Arithmetic Operations - Hard Challenge

Master this concept. Prove your skills!

🏆 Study a lesson for 2+ minutes to earn +10 TalentJR Points a day. Badges, certificates & prizes →

Ready to Master Basic Arithmetic Operations? 🚀

Complete the challenges, take the quiz and keep your learning streak going!