Coffee script :)

duikboot arjen.dijkstraNoSpam at hccnet.nl
Thu Dec 18 11:20:16 CET 2003


I've made something like that too, with a Gui in Tkinter.

It's very handy at work so you know ;-)

Arjen

"Guyon Morée" <gumuz at looze.net> schreef in bericht
news:3fe17a79$0$246$4d4ebb8e at news.nl.uu.net...
> 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