Created
July 7, 2017 03:21
-
-
Save sreevidyavutukuru/099dfca116698cd753b593f29dc35c49 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Kth rank value | |
scores = [10,20,12,3,8] | |
scores.sort() | |
rank_scores = {} | |
for i,val in enumerate(scores): | |
rank_scores[i+1] = val | |
print rank_scores[3] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment