セクション 1. 章 7
single
Challenge: Calculate Class Attendance
メニューを表示するにはスワイプしてください
Keeping track of attendance is a common classroom task. In this challenge, you'll use a list of attendance counts to calculate the total and average attendance.
タスク
スワイプしてコーディングを開始
Write a Python script that takes a list of attendance numbers for each student, calculates the total and average attendance, and prints the results.
- Calculate the sum of all values in
attendance_list. - Calculate the average attendance by dividing the total by the number of students in
attendance_list. - Print the total attendance.
- Print the average attendance.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 7
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください