My problem's a bit more complicated than this, but essentially I have a list of scores (I'll simplify it to 6) and I need to sort them and then get rid of the lowest score. However, since this score corresponds to a person, I need the program to figure out which score came from which person (let's call them persons A, B, C, D, E, F). For example:
scores = [6,2,5,3,5,8] #this corresponds to persons A, B, C, D, E, F in order
scores.sort()
So now I will have a sorted list. I have figured out who got the lowest score but how do I know which person this corresponds to?
Alternatively, is there a way that I can brute force it by checking every value in the unsorted list to see if it's the lowest value? That would be fine also.