Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
lambda next zip solution in Clear category for Ryerson Letter Grade by Phil15
LETTERS = [ch + sign for ch in 'ABCD' for sign in ('+','','-')] + ['F']
MIN_PERCENTAGES = [90, 85, 80, 77, 73, 70, 67, 63, 60, 57, 53, 50, 0]
ryerson_letter_grade = lambda pct: next(ch for ch, p in zip(LETTERS, MIN_PERCENTAGES) if pct >= p)
Oct. 13, 2018
Comments: