Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
A grade is for or more, for or more, for or more and for less than . What grade is given for , and ?
The first True condition wins, so start with the highest.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, compare your working with the solution.
Plan. Check from the highest grade down, with elif.
82 >= 90 is false. The second, 82 >= 75, is true. Grade B.90 >= 90 is true, because >= includes 90. Grade A.else gives grade D.Answer: B, A and D.
Log in to join the discussion.
Loading…