Ola Ride Rating Summary
Ola Ride Rating Summary
EasyArrays13% accepted
Meera drives for Ola in Pune and wants to see her weekly ratings. Given her 5-star ratings from passengers, calculate her average rating to stay eligible for bonuses.
Approach
Given an array of N customer ratings (1-5 stars), find the average rating.
Input
5
5 4 5 3 4
Output
4.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