csev/py4e

Lines 9, 11, 13 and 15 in py4e/code3/grade.py and py4e/code/grade.py

solomon-s-b opened this issue · 1 comments

It will print a 'B' if we put 0.9, a 'C' if we put 0.8, a 'D' if we put 0.7 and an 'F' if we put 0.6.
Therefore, Exercise 3 in chapter 3 should be, as outlined in the book:

elif score >= 0.9:
    print 'A'
elif score >= 0.8:
    print 'B'
elif score >= 0.7:
    print 'C'
elif score >= 0.6:
    print 'D'

instead of:

elif score > 0.9:
    print 'A'
elif score > 0.8:
    print 'B'
elif score > 0.7:
    print 'C'
elif score > 0.6:
    print 'D'