So if I have one list:
name = [\'Megan\', \'Harriet\', \'Henry\', \'Beth\', \'George\']
And I have another list where each value represents the
One obvious approach would be to zip both the list sort it and then unzip it
zip
>>> name, score = zip(*sorted(zip(name, score_list))) >>> name ('Beth', 'George', 'Harriet', 'Henry', 'Megan') >>> score (6, 10, 6, 5, 9)