Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Challenge: Generate a Progress Report | Automating Classroom Tasks
Python for Teachers
セクション 3.  5
single

single

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.

タスク

スワイプしてコーディングを開始

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.

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 3.  5
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt