DEV Community

Discussion on: Daily Challenge #68 - Grade Book

Collapse
teaglebuilt profile image
dillan teagle • Edited on

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)