Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
bisect solution in Clear category for Ryerson Letter Grade by tokyoamado
from bisect import bisect
GRADES = 'F,D-,D,D+,C-,C,C+,B-,B,B+,A-,A,A+'.split(',')
BPS = [50, 53, 57, 60, 63, 67, 70, 73, 77, 80, 85, 90]
def ryerson_letter_grade(pct: int) -> str:
return GRADES[bisect(BPS, pct)]
March 30, 2020
Comments: