
Ryerson Letter Grade
Given the grade percentage for the course, calculate and return the letter grade that would appear in the Ryerson’s grade transcript, as defined on the page Ryerson Grade Scales. The letter grade should be returned as a string that consists of the uppercase letter followed by the possible modifier "+" or "-".
Input: Grade percentage as an integer.
Output: The letter grade as a string.
Examples:
The initial code contains grade and percentage sequences. Feel free to change them in any way.
assert ryerson_letter_grade(45) == "F" assert ryerson_letter_grade(62) == "C-"
Precondition: argument can be from 0 to 150.
The mission was taken from Python CCPS 109 Fall 2018. It is taught for Ryerson Chang School of Continuing Education by Ilkka Kokkarinen