def letter_grade(mark):
    """Lookup letter grade from average grade."""

    if mark > 70:
        return 'A'
    elif mark > 60:
        return 'B'
    elif mark > 50:
        return 'C'
    elif mark > 40:
        return 'D'
    else:
        return 'F'