Coffee script :)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guyon Morée

    Coffee script :)

    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','em ployee2','emplo yee3','employee 4' ]

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


  • duikboot

    #2
    Re: Coffee script :)

    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@looze.ne t> schreef in bericht
    news:3fe17a79$0 $246$4d4ebb8e@n ews.nl.uu.net.. .[color=blue]
    > I just wrote this to decide who's going to get the next round of coffee[/color]
    here[color=blue]
    > 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','em ployee2','emplo yee3','employee 4' ]
    >
    > print "%s is the chosen one!" % (random.choice( candidates))
    >
    >[/color]


    Comment

    Working...