Coffee script :)

G

Guyon Morée

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))
 
D

duikboot

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

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

Arjen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,172
Messages
2,570,934
Members
47,478
Latest member
ReginaldVi

Latest Threads

Top