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

single

bookChallenge: Visualize Class Performance

Pyyhkäise näyttääksesi valikon

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

Tehtävä

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.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 2. Luku 7
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

some-alt