Choose a message by score
python · static example
score = 72
if score >= 80:
result = "Great work"
elif score >= 50:
result = "Passed"
else:
result = "Try again"
print(result)The comparisons are checked from top to bottom. Only the first matching branch runs.