Mini Project

Student Grade Analyzer

Student Grade Analyzer

Build a student performance analyzer that processes a hardcoded dataset of 8 students. Calculate averages, find the topper, count pass/fail ratios, filter by attendance, and rank students — all using core Python data structures and functional tools. Learn list comprehensions, sorted(), filter(), map(), reduce(), and f-string formatting.

EditorPython · JSX
PreviewUpdates on Run Tests
Loading preview…
Tests
Should define a students list with dicts
Should use list comprehension to add computed fields
Should use max() with key lambda to find topper
Should use sum() with generator for subject averages
Should use list comprehension for filtering
Should use sorted() with key lambda to rank
Should use f-string formatting for output
Should use dict merge {**s, ...} or dict update