Write a programExercise 1/4Basic10 XP
A grade from a test
Task
The program reads the points from a test (a whole number from 0 to 50) and prints the grade on this scale:
- 45 points or more:
1 - 38 to 44:
2 - 25 to 37:
3 - 16 to 24:
4 - fewer than 16:
5
Examples
Input
40
Expected output
2
After you submit, 10 hidden tests will also check your solution: 50 points, exactly 45, 44 points, exactly 38, 37 points, exactly 25, 24 points, exactly 16, 15 points, 0 points.
You need to know
Python starts the first time you run code.
Ctrl+Enter runs the program. Tab indents. Press Esc, then Tab, to leave the editor.
Input (stdin)
Each line = one call to input().
Output
Hints
Try it yourself first. Each hint reveals a little more - and lowers the reward a little.
Signed out, hints are free - but no XP is awarded either.
Solution
The solution unlocks after the last hint.