I have an array with subjects and every subject has connected time. I want to compare every subjects in the list. If there are two of the same subjects, I want to add the ti
Iterate backwards, if you can:
for x in range(subjectlength - 1, -1, -1):
and similarly for y.
y