Build a Marks and Results Analyser
60 min · Medium
Need help? Ask a tutor on WhatsApp (opens in a new tab)Every school and training centre turns a pile of marks into a rank list, subject averages and a pass or fail result, and Python's collections make that short and clear.
What you will learn
What you will learn
- Group raw mark records into nested dictionaries keyed by student and subject
- Count grades and repeated marks with Counter, and group marks by subject with defaultdict
- Sort rows by several fields and assign shared ranks to tied totals
- Print an aligned report that a teacher could read at a glance
Sign in to continue this lesson
Create an account to read every lesson, practise with the exercises and keep track of your progress.