セクション 3. 章 5
single
Challenge: 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
studentslist, calculate the average of the values in thegradeslist. - If a student has no grades, use
0as 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.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 3. 章 5
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください