Wednesday, March 28, 2007

How Do I Not Like That



Apparently I bear a marked similarity to a hamster-lovin', Nazi-propaganda making and sympathising, red shoe wearing conspiracy nut. Hmmm.

So I had another go:

Gene Tierney, noted for her lovely sideburns of course. Tinseltroos also had a go and came up with a better list of celebs, interestingly also including Scarlett Johansson. On the basis of my experiments I've had a go at writing what I'm sure is a program that's just as accurate but this one I'm giving away for free. Here goes:

#!/usr/bin/python

import random,sys,time

if len(sys.argv) != 2:
print "Please supply a picture filename."
sys.exit(1)

print "Analysing picture"


counter = 0

while counter < 20:
print(".")
time.sleep(0.2)
counter += 1

print"\n"


deadCert = "Scarlett Johansson"
pullNameOutOfAss = ["Ronald McDonald",
"Lucretia Borgia",
"Brad Pitt",
"Paris Hilton",
"Francis Crick",
"Oscar Wilde",
"Alan Moore",
"Kenny Everett",
"Englebert Humperdink",
"Gary Coleman",
"Germaine Greer",
"Ingrid Pitt",
"Jade Goody",
"Knut the polar bear",
"Mary Tyler Moore",
"Bella Emberg",
"Red Rum",
"Lassie",
"Flipper",
"Skippy",]

numberOfCelebs = "You look"
for x in pullNameOutOfAss:
if random.randint(0,2) == 1:
numberOfCelebs += " "+str(random.randint(1,100))+"% like "+x+","

numberOfCelebs += " and "+str(random.randint(1,100))+"% like "+deadCert+"."

print numberOfCelebs


Labels:

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home