Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre 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.

Tâche

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.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 5
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

close

bookChallenge: Generate a Progress Report

Glissez pour afficher le menu

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

Tâche

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.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 5
single

single

some-alt