Quantcast
Channel: StudioSysAdmins Message Board
Viewing all articles
Browse latest Browse all 3749

OTB: the race so far..

$
0
0
By Greg Ercolano -

On a group like this, sooner or later someone had to write this ;)

For those trying to keep track at home..
I've entered the numbers so far in ascending order (oldest first).
Tommy's is the last one I added.To stay current, just append new votes to the list as they come in.Best to double check my data; I just casually pasted the numbers
to serve my curiosity.So far looks like two are way out front, one ahead by a nose..!

!/usr/bin/python

votes = """ 4 10 2 38 39 4 39 4 10 4 44 4 4 38 6 38 38 6 11 32 4 11 52 14 39 38 38 10 40 40 4 38 38 38 """ sums = {} for vote in votes.split(): if sums.has_key(vote): sums[vote] += 1 else: sums[vote] = 1 print "LOGO VOTESn---- -----" for vote in sorted(sums, key=sums.get, reverse=True): print "%03d: %d" % (int(vote), sums[vote]) print "nTotal Votes: %d" % len(votes.split())

To unsubscribe from the list send a blank e-mail to mailto:studiosysadmins-discuss-request@studiosysadmins.com?subject=unsubscribe


Viewing all articles
Browse latest Browse all 3749

Trending Articles