School Exam Grade Distribution Count
School Exam Grade Distribution Count
MediumArrays40% accepted
Ravi, a computer science teacher in Delhi, conducted mid-term exams and has exam scores in an array. He needs to categorize students into three grade brackets to generate academic reports.
Approach
Given an array of exam scores, count students in three categories: above 75, between 60-75 (inclusive), and below 60.
Input
7
45 67 89 92 55 73 88
Output
[3, 2, 2]
More Arrays problems
Browse all coding problems →solution.py
Loading editor...
Test 1
Test 2
Test 3
Press Run to test your custom input, or Submit to judge against all test cases.
Sign in to continue
Create a free account to run code, submit solutions and track progress.
- Free forever — no credit card
- 10+ languages with live execution
- Points, streaks & leaderboards