Where did I make a mistake? Because the program should take only one name and one grades for each student. Exercies - Given a list of students and the points they achieved over the course of the semester, calculate their final grades and print them to the screen according to the grade scale:
list_students = ["Alice", "Bernard", "Charles", "Daniel", "Elisa",
"Fabian", "Gabrielle", "Helga", "Ilse", "Johann"]
list_points = [86, 73, 56, 79, 48, 98, 95, 40, 81, 88]
for x in list_students:
for i in range(len(list_points)):
if list_points[i] < 50:
i = 5
elif list_points[i] < 63:
i = 4
elif list_points[i] < 75:
i = 3
elif list_points[i] < 87:
i = 2
elif list_points[i] < 100:
i = 1
print(str(x) + ": " + str(i))