← All Python lessonsLesson 5 of 8 · ⭐ 20 XP

Big or Small?

⭐ 0 XP · 🔥 0 day streak

Programs make choices. Python's if checks a question that is true or false, and the lines that belong to it are indented — pushed in with spaces. That tidy staircase is how Python knows which lines belong to which choice, and it ends the question line with a colon :

Your mission: finish the two choices. A score of 85 should print You pass!, and an age of 7 should print Kid coder.

Checks

    Next lesson →