0 / 34
Scenario

Student Grade Analysis

πŸ“‹ Context

You're a teacher with exam scores for 5 students across 4 tests. You need to analyze performance, identify struggling students, and reason about the grade book as a single numerical object.

5 by 4 grade grid: each row is a student, each column a test; shape 5 comma 4.
Think of the sheet as one 2D array: each row is a student, each column a testβ€”then row means and boolean masks have a clear meaning.

This scenario uses the same patterns as the Aggregation and Boolean indexing lessons.

1
2
3

Step 1: Load & Inspect

🎯 Task

Create a 2D array grades with this data (5 students Γ— 4 tests):
[[85,90,78,92],[65,70,60,55],[95,88,97,93],[72,68,75,70],[88,82,90,85]]
Print its shape.

np.array([[85,90,78,92],[65,70,60,55],...])
Related lessons: Lesson 1, Lesson 2, Lesson 6, Lesson 9
exercise.py
⌘⏎ run Β· βŒ˜β† β†’ nav
β–Ά Output
Run your code to see output here.