loading...

re: Daily Challenge #68 - Grade Book VIEW POST

FULL DISCUSSION
 

This is my quick python solution

def grade(x, y, z):
    board = { 9: "A", 8: "B", 7: "C", 6: "D", 5: "F" }
    sum = x + y + z
    mean = sum / 3
    if mean >= 5:
        return board.get(mean)

code of conduct - report abuse