Letter grades

Sign in to test your solution.
# read numeric grade numeric_grade = int(input()) # determine corresponding letter grade if numeric_grade >= 60: letter_grade = 'D' elif numeric_grade >= 70: letter_grade = 'C' elif numeric_grade >= 80: letter_grade = 'B' elif numeric_grade >= 90: letter_grade = 'A' else: letter_grade = 'F' # print corresponding letter grade print(letter_grade)
You can submit as many times as you like. Only your latest submission will be taken into account.
Sign in to test your solution.

  Python sandbox

This window allows you to run Python code without installing a thing. The code you write here is not automatically submitted to Dodona. This feature is still in full development, so we're happy to hear about your suggestions and issues using the contact form.