Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Challenge: Generate a Progress Report | Automating Classroom Tasks
Python for Teachers

bookChallenge: Generate a Progress Report

Progress reports help teachers communicate student performance. In this challenge, you'll generate a text report summarizing each student's grades.

Taak

Swipe to start coding

Write a Python script that creates a text file containing each student's name and average grade.

  • For each student in the students list, calculate the average of the values in the grades list.
  • If a student has no grades, use 0 as their average grade.
  • Write a line for each student in the text file specified by filename, formatted as: Student: {name}, Average Grade: {average}.
  • The average grade should be shown with two decimal places.

Oplossing

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 3. Hoofdstuk 5
single

single

Vraag AI

expand

Vraag AI

ChatGPT

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

close

bookChallenge: Generate a Progress Report

Veeg om het menu te tonen

Progress reports help teachers communicate student performance. In this challenge, you'll generate a text report summarizing each student's grades.

Taak

Swipe to start coding

Write a Python script that creates a text file containing each student's name and average grade.

  • For each student in the students list, calculate the average of the values in the grades list.
  • If a student has no grades, use 0 as their average grade.
  • Write a line for each student in the text file specified by filename, formatted as: Student: {name}, Average Grade: {average}.
  • The average grade should be shown with two decimal places.

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 3. Hoofdstuk 5
single

single

some-alt