WitzCode
← All tracks
🐍 Python·Conditions

Conditions

if / elif / else.

Conditions

score = 91
if score > 90:
    print("A")
elif score > 75:
    print("B")
else:
    print("Keep going")
Challenge 1 / 20 XP

Python's 'else if' keyword is…

Practical task

Write an if/else that prints `A` when `score > 90`.