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.
Tarefa
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
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.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 3. Capítulo 5
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Incrível!
Completion taxa melhorada para 4.76
Challenge: Generate a Progress Report
Deslize para mostrar o menu
Progress reports help teachers communicate student performance. In this challenge, you'll generate a text report summarizing each student's grades.
Tarefa
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
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.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 3. Capítulo 5
single