Skip to content

Instantly share code, notes, and snippets.

@sreevidyavutukuru
Created July 7, 2017 03:21
Show Gist options
  • Save sreevidyavutukuru/099dfca116698cd753b593f29dc35c49 to your computer and use it in GitHub Desktop.
Save sreevidyavutukuru/099dfca116698cd753b593f29dc35c49 to your computer and use it in GitHub Desktop.
#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