IF · ELIF · ELSE

CLASS 9 & 10 · COMPUTER SCIENCE

Grade Calculatorif marks >= 80:    grade = "A"elif marks >= 60:    grade = "B"elif marks >= 40:    grade = "C"else:    grade = "Fail" marks grade
STEP 1
prostudypk.com · free MCQ tests
REMEMBER
if · elif · else
Free test → prostudypk.com
CLASS 9 & 10 · COMPUTER SCIENCE

85, 65 or 30 marks. Which grade does Python give?

if, elif, else in 25 seconds

Watch ↓
‹ Labs Next ›