TalentJR

Lesson 9

Combining Conditions

Use multiple conditions in decisions

1And Operator✨

💻 code
if age >= 13 and age < 18:
    print("You're a teen!")

2Or Operator🎯

💻 code
if grade == 'A' or grade == 'B':
    print("Good job!")

3Not Operator💡

💻 code
if not is_weekend:
    print("Go to school!")

4Real Examples🚀

💻 code
# Check if password is valid
password = input("Password: ")
if len(password) >= 8 and "@" in password:
    print("Valid password!")
else:
    print("Too weak!")
💻 code
# Game logic
score = 100
if score > 50 and lives > 0:
    print("Keep playing!")
elif score > 50 or extra_life:
    print("You win!")
else:
    print("Game over!")
💻 code
# Checking ranges
age = 15
if age >= 13 and age < 20:
    print("You're a teenager!")

🎯 Practice Challenges

Master Combining Conditions by completing all 3 difficulty levels

🟢 EASY

Combining Conditions - Easy Challenge

Start with the basics. Perfect for beginners!

🟡 MEDIUM

Combining Conditions - Medium Challenge

Get more challenging. Build your confidence!

🔴 HARD

Combining Conditions - 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 Combining Conditions? 🚀

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