Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Challenge: Calculate Grade Statistics | Organizing and Analyzing Grades
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Python for Teachers

bookChallenge: Calculate Grade Statistics

Teachers often need to summarize class performance. In this challenge, you'll calculate the average, highest, and lowest grades from a dictionary of student grades.

Uppgift

Swipe to start coding

Write a Python script that takes a dictionary of student grades and prints the average, highest, and lowest grades.

  • Calculate the average of all the values in the grades dictionary.
  • Find the highest value in the grades dictionary.
  • Find the lowest value in the grades dictionary.
  • Print the average, highest, and lowest grades.

Lösning

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 2. Kapitel 5
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

Suggested prompts:

How do I calculate the average, highest, and lowest grades from a dictionary?

Can you show me an example of a student grades dictionary?

What should I do if some students have missing grades?

close

bookChallenge: Calculate Grade Statistics

Svep för att visa menyn

Teachers often need to summarize class performance. In this challenge, you'll calculate the average, highest, and lowest grades from a dictionary of student grades.

Uppgift

Swipe to start coding

Write a Python script that takes a dictionary of student grades and prints the average, highest, and lowest grades.

  • Calculate the average of all the values in the grades dictionary.
  • Find the highest value in the grades dictionary.
  • Find the lowest value in the grades dictionary.
  • Print the average, highest, and lowest grades.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 2. Kapitel 5
single

single

some-alt