LearnPy Hub
← NumPy problems
Medium

Grades With np.select

Read marks and print a grade for each (A for 80+, B for 60–79, C for 40–59, F otherwise) on one line, using np.select.

Input

Numbers separated by spaces.

Output

One line.

Sample 1

Input
85 60 45 30
Output
A B C F

Sample 2

Input
100
Output
A
solution.py
Output appears here
Grades With np.select · Python practice problem · LearnPy Hub