notenspiegel = [1,2,2,1,1,3,1,2,3,4,1,2,1,1,1,1] num_students = 0 for i in range(16): num_students = num_students + notenspiegel[i]