Coffee script :)

Guyon Morée gumuz at looze.net
Thu Dec 18 04:59:23 EST 2003


I just wrote this to decide who's going to get the next round of coffee here
in the office.
Who knows it might be usefull to other people who also have endless
discussions on who is gonna get the coffee :)

cheers,

Guyon

coffee.py
-------------------------------------------------------------------------

# who's gonna get coffee? (tm)
#
# Guyon Moree 2003

import random

candidates = [  'employee1','employee2','employee3','employee4' ]

print "%s is the chosen one!" % (random.choice(candidates))






More information about the Python-list mailing list