Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
5 if 8 else 3 solution in Speedy category for Ryerson Letter Grade by veky
def ryerson_letter_grade(pct: int) -> str:
if pct >= 90: return 'A+'
if pct < 50: return 'F'
tens, ones = divmod(pct, 10)
cut = 5 if tens == 8 else 3
return chr(73 - tens) + '+' * (ones>cut*2) + '-' * (ones
Oct. 12, 2018
Comments: