Answer
The code will first check the first if statement. If the score = 90, it satisfied the first condition, but it doesn't necessarily mean the student gets a D. The code should first check the condition to see if the score is >= 90. Then the second condition should check to see if the score is >= 80, in that case, if the score is between the value of 80 and 89, the grade will be B. The correct code should look like the following.
Work Step by Step
if score >= 90.0:
grade = 'A'
elif score >= 80.0:
grade = 'B'
elif score >= 70.0:
grade = "C"
elif score >= 60.0:
grade = "D"
else:
grade = "F"