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

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.

Завдання

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.

Рішення

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 3. Розділ 5
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

close

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.

Завдання

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.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 3. Розділ 5
single

single

some-alt