CodeField

Make a choice

Task 4 of 6

Fill the gap

Complete the grade program for the NUC bands: A 70-100, B 60-69, C 50-59, D 45-49, E 40-44, F 0-39. Choose what fills the gap.

  1. mark = int(input())
  2. if mark >= 70:
  3. print("A")
  4. elif mark >= 60:
  5. print("B")
  6. elif mark >= 50:
  7. print("C")
  8. elif mark >= 45:
  9. print("D")
  10. elif mark >= [gap 1]:
  11. print("E")
  12. else:
  13. print("F")
Gap 1

Tips

  • Try each piece in your head on the tests the task names.
  • The pieces are all the same size, so size tells you nothing.