IF · ELIF · ELSE
CLASS 9 & 10 · COMPUTER SCIENCE
prostudypk.com · free MCQ tests
REMEMBERif · elif · else
- Only ONE block ever runs
- Order matters: test the highest first
- else needs no condition
Free test → prostudypk.com
CLASS 9 & 10 · COMPUTER SCIENCE85, 65 or 30 marks. Which grade does Python give?
if, elif, else in 25 seconds
Watch ↓