Lesson 3 of 12 ยท 8 min ยท 2 hands-on steps
if, elif & else
Decisions in Python, where indentation shows what belongs together.
You're on a roll. Keep going!
Unlock every lesson, exercise and interview question, plus the AI tutor. From $9.99/month, cancel anytime, with a 14-day money-back guarantee.