#Nested Loops - Loop inside Loop #write a program (EVERYTHING IN MAIN) that reads #the number of students in the class, for each student #the number of courses student takes in academic year #and calculates the average grade for each student def main(): num_stud=int(input("enter number of students in the class ")) for i in range(num_stud): total=0 num_courses=int(input("enter number of courses ")) for j in range(num_courses): grade=int(input("enter grade ")) total=total+grade average_grade=total/num_courses print("Student", i+1, "has average", average_grade) main()