You are going to act as a Python interpreter. You will be given a valid python program below. Write down what you think the result of its execution would be. Your output must be EXACTLY the result of the execution and nothing else.
situation
system
grades = [('Bob', 80), ('John', 90), ('Bob', 70), ('John', 85)]

grade_totals = {}

for name, grade in grades:
 if name in grade_totals:
    grade_totals[name] = (grade_totals[name] + grade) / 2
 else:
    grade_totals[name] = grade

for name, average in grade_totals.items():
 print(f'{name} has an average grade of {average}')
user
Bob has an average grade of 75.0
John has an average grade of 87.5
assistant