ó {G_Tc@sêddlZddlZddlmZddlmZdejd>> grades = "FEDCBA" >>> breakpoints = [30, 44, 66, 75, 85] >>> from bisect import bisect >>> def grade(total): ... return grades[bisect(breakpoints, total)] ... >>> grade(66) 'C' >>> map(grade, [33, 99, 77, 44, 12, 88]) ['E', 'A', 'B', 'D', 'F', 'A'] t libreftestcCsÃddlm}ttttttg}tj |Œtj ||ƒ|r¿t t dƒr¿ddl }dgd}xAtt|ƒƒD]-}tj |Œ|jƒt jƒ||s8        °