Conditions in Python and Java
Timing
05:00
Score
100
grader.py
1
def
calculate_grade
(
score
):
Click a condition block
Syntax Blocks
Shuffled
if
score >=
90
:
return
'A'
elif
score >=
80
:
return
'B'
elif
score >=
70
:
return
'C'
else
:
return
'F'
Test Logic