我正在尝试编写一个程序,允许您输入班级中的学生人数,然后为每个学生输入 3 个考试成绩以计算平均值。我是编程新手,我不断收到一个错误,我不明白它的含义或如何解决它。这是我到目前为止所拥有的:
students=int(input('Please enter the number of students in the class: '))
for number in students:
first_grade=(input("Enter student's first grade: "))
second_grade=(input("Enter student's second grade: "))
third_grade=(input("Enter student's third grade: "))