Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Calculate Grade Statistics | Organizing and Analyzing Grades
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.

Task

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.

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 5
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

bookChallenge: Calculate Grade Statistics

Swipe to show menu

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.

Task

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.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 5
single

single

some-alt