For the Python course, we were supposed to print out grades from a list. Here is the code I have:grades = [100, 100, 90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5]
for i in grades_input:
What I notice, though, is that while this gives the desired result, when I put instead print(print_grades(grades)), it prints out the last element of grades, 50.5, twice. Why is this?