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.
Swipe to start coding
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.
Рішення
Дякуємо за ваш відгук!
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Чудово!
Completion показник покращився до 4.76
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.
Swipe to start coding
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.
Рішення
Дякуємо за ваш відгук!
single