Hello I am somewhat new to python so please bear with me.
My python program has the following lines:
print "Player 1: " +str(player1points)
print "Player 2: " +str(player2points)
print "Player 3: " +str(player3points)
print "Player 4: " +str(player4points)
The player#points are what my program has calculated it to be, so differs everytime I run it.
The result would yield:
Player 1: 3
Player 2: 4
Player 3: 3
Player 4: 5
If possible, I want to sort the result so that each player's points is ranked from highest to lowest first, then the player. If two players are tied for points, then the player with the lowest number will be listed first.
So I expect my results to be like:
Player 4: 5
Player 2: 4
Player 1: 3
Player 3: 3
Any help would be much appreciated!!