BuildlyBuildly
DashboardExercisesProfileHelp
Data Science/Module 4: Data Visualization/Matplotlib Basics3/3
Exercise·7 min·10 XP

Scatter Hours vs Scores

Context. Eight students, their study hours and their test scores. A scatter plot shows whether the two move together.

Your task. Write make_scatter(hours, scores) that draws one dot per (hours, scores) pair and returns the axes.

Example. The student with 1 hour and score 52 becomes the dot at (1, 52).

Notes. Use a scatter, not a line — dots live in ax.collections, not ax.lines.

Previous
Bar Chart of Category Sales
Next
Title and Label a Chart