TalentJR

Lesson 7

If Statements & Decisions

Make programs that make decisions

1Making Decisions✨

💻 code
Programs make choices based on conditions:
if age >= 18:
    print("You're an adult!")

2Comparison Operators🎯

💻 code
== equal to
!= not equal to
> greater than
< less than
>= greater than or equal
<= less than or equal

3If-Else Statements💡

💻 code
score = int(input("Score: "))
if score >= 70:
    print("You passed!")
else:
    print("Try again!")

4If-Elif-Else🚀

💻 code
age = int(input("Age: "))
if age < 13:
    print("Child")
elif age < 18:
    print("Teen")
else:
    print("Adult")

5Boolean Values🔍

💻 code
is_student = True
if is_student:
    print("You're a student!")

🎯 Practice Challenges

Master If Statements & Decisions by completing all 3 difficulty levels

🟢 EASY

If Statements & Decisions - Easy Challenge

Start with the basics. Perfect for beginners!

🟡 MEDIUM

If Statements & Decisions - Medium Challenge

Get more challenging. Build your confidence!

🔴 HARD

If Statements & Decisions - 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 If Statements & Decisions? 🚀

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