IntermediateLists & Dictionaries25 points
Students with attendance shortage
An institute needs a list of students whose attendance fell below 75% so the coordinator can call their parents.
Task: the first line holds n. Each of the next n lines has a student name (one word), the days present and the total days, separated by spaces. Print the students below 75% attendance, one per line as name percentage, with the percentage rounded to 1 decimal, sorted by percentage from lowest to highest (ties by name). If nobody is below 75%, print All good.
Sample test
Input
4 Ali 20 30 Sara 28 30 Bilal 15 24 Hira 9 12
Expected output
Bilal 62.5 Ali 66.7
Your answer is also checked against 2 hidden tests.
Python 3
25 pts
Loading editor...
Log in or create a free account to run your code, submit and earn points.
Run your code to see the output here. Ctrl + Enter also runs it.
