Basic scatter plot with plt.scatter
📖 Scenario: You are a data analyst working with a small dataset of students' study hours and their exam scores. You want to visualize the relationship between study hours and exam scores using a scatter plot.
🎯 Goal: Create a scatter plot using plt.scatter to show how study hours relate to exam scores.
📋 What You'll Learn
Create two lists:
study_hours and exam_scores with exact values.Create a variable
point_color to set the color of the scatter points.Use
plt.scatter with the lists and point_color to plot the points.Display the scatter plot using
plt.show().💡 Why This Matters
🌍 Real World
Scatter plots help visualize relationships between two sets of numbers, like hours studied and exam scores, to find patterns.
💼 Career
Data analysts and scientists use scatter plots to explore data and communicate findings clearly.
Progress0 / 4 steps