About this question
Recently I have been assigned a task in which I need to implement the for each() function of Python programming language in one of the lists which include the respective subjects and grades of students. How can I implement this particular function to calculate the average grade for each student?