title: Calculate the average of marks obtained and store it in list format and return back to function
body: <p>xyz school had conducted the annual examination for the 5th standard class and they want to calculate the grade for the students who all attended in the annual examination. each student has 5 subject marks. let's help them to calculate the grade for the students. define a function called calculategrade which takes a parameter. the first parameter is students marks as a list. the function definition code stub is given in the editor. calculate grade for all students given in the list, store into the list, and return it. steps to calculate the grade for students iterate each student, calculate the average score, and find the grade based on the average of a student store the grade for each student into a list, and return it.</p>
  <p>Here is what I tried</p>
  <pre><code>def calculateGrade(students_marks):
      grade = []
      for x in range(len(students_marks)):
          avg = (sum(students_marks[x]))//len(students_marks[x])
          if(avg &gt;= 90):
              grade.append('A+')
          elif avg in range(80,90):
              grade.append('A')
          elif avg in range(70,80):
              grade.append('B')
          elif avg in range(60,70):
              grade.append('C')
          elif avg in range(50,60):
              grade.append('D')
          elif (avg &lt; 40):
              grade.append('F')
      return grade
  
  if __name__ == '__main__':
  fptr = open(os.environ['OUTPUT_PATH'], 'w')
  
  students_marks_rows = int(input().strip())
  students_marks_columns = int(input().strip())
  
  students_marks = []
  
  for _ in range(students_marks_rows):
      students_marks.append(list(map(int, input().rstrip().split())))
  
  result = calculateGrade(students_marks)
  fptr.write('\n'.join(result))
  fptr.write('\n')
  
  fptr.close()
  </code></pre>
  <p>User Input2
  5
  [50,68,88,85,25]
  [45,85,88,56,14]</p>
  <p>Expected Output
  C
  D</p>
  <p>My Output
  C</p>