LearnPy Hub
← If…Else problems
Medium

Grade Calculator

Convert marks to a grade: 80–100 → A+, 70–79 → A, 60–69 → B, 50–59 → C, 0–49 → F. Print Invalid for marks outside 0–100.

Input

One integer of marks.

Output

The grade.

Sample 1

Input
85
Output
A+

Sample 2

Input
72
Output
A
solution.py
Output appears here
Hints
Grade Calculator · Python practice problem · LearnPy Hub