# Title: Grade calculator
# Heading: Python Program to Find a Student's Grade from Marks
# Level: beginner
# Tags: grade, marks, student grade, if elif else
# About: Turns marks out of 100 into a letter grade from A to F by checking, from the top down, which range they fall in.

def grade(marks):
    """The letter grade for marks out of 100."""
    if marks >= 90:
        return "A"
    elif marks >= 80:
        return "B"
    elif marks >= 70:
        return "C"
    elif marks >= 60:
        return "D"
    else:
        return "F"


print("Grade for 85:", grade(85))
print("Grade for 59:", grade(59))
