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 equal3If-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!
Keep learning
- ← Previous lessonLesson 6: First Mini ProjectsBuild real programs using what you've learned
- Next lesson →Lesson 8: Loops - Repeating CodeLearn to repeat actions efficiently
- Grade 6 coursePython Control FlowPython coding course for kids.
- Student ToolsFree calculators for studentsPercentage, fraction, ratio and marks calculators with steps.
- CBSEClass 5 CBSE & NCERT study materialMaths, Science and Computer chapters with solutions.
- Future SkillsExplore future skillsAI, robotics and new-age skills explained for students.