I am a beginner programmer and am self learning python programming at home from a book. I am currently learning about strings. There is a question there which i solved it but I was thinking if there are other easier ways to solve it.

Q. A certain professor gives 100-point exams that are graded on the scale 90-100:A, 80-89:B, 70-79:C, 60-69:D, <60:F. Write a program that accepts an exam score as input and prints out the corresponding grade.

```
def main():

    ## making a list from 0-100
    num = list(range(0,101))

    ## asking for the exam points
    points = int(input("Enter the exam points 0-100: "))

    ## iterating num 0-60
    for i in num[0:60]:
        if i == points:
            print("Your corresponding grade is F.")

    ## iterating num 60-70
    for i in num[60:70]:
        if i == points:
            print("Your corresponding grade is D.")

    ## iterating num 70-80
    for i in num[70:80]:
        if i == points:
            print("Your corresponding grade is C.")

    ## iterating num 80-90
    for i in num[80:90]:
        if i == points:
            print("Your corresponding grade is B.")

    ## iterating num 90-100
    for i in num[90:101]:
        if i == points:
            print("Your corresponding grade is A.")

main()

```