Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Challenge: Visualize Class Performance | Organizing and Analyzing Grades
Practice
Projects
Quizzes & Challenges
Quizzen
Challenges
/
Python for Teachers
Sectie 2. Hoofdstuk 7
single

single

bookChallenge: Visualize Class Performance

Veeg om het menu te tonen

Visualizing grades can help teachers quickly identify trends. In this challenge, you'll use matplotlib to create a bar chart of student grades.

Taak

Swipe to start coding

Write a Python script that takes a dictionary of student grades and generates a bar chart with student names and their corresponding grades.

  • Use the keys of the dictionary as the labels for the x-axis.
  • Use the values of the dictionary as the heights of the bars.
  • Add a label for the x-axis: "Student Name".
  • Add a label for the y-axis: "Grade".
  • Add a title for the chart: "Class Performance".
  • Display the bar chart.

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 2. Hoofdstuk 7
single

single

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

some-alt