Skip to content

Instantly share code, notes, and snippets.

@drewconway
Created February 25, 2009 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drewconway/70329 to your computer and use it in GitHub Desktop.
Save drewconway/70329 to your computer and use it in GitHub Desktop.
counts = dict((k, F.count(k)) for k in set(F))
counts_items=counts.items()
counts_items=[(b,a) for (a,b) in counts_items]
counts_items.sort()
counts_items.reverse()
for i in counts_items:
print str(i[0])+' of your friends are already following '+i[1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment