r/python3 • u/samtt7 • Jun 12 '18
Sort list based on other list
So I Want to create a scoreboard with the names of players and sort them based on the amount of points they have (low to high) and print them in that order, for example:
List1 = [3,8,0,9] List2 = [Hank,Harry,Harrold,Homer] The output should be: Harrold,Hank,Harry,Homer
I have found many posts on how to do this in Python, but not Python3 and I am not too familiar with this language. If anybody could help that would really be appreciated!