473,394 Members | 1,811 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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','employee2','employee3','employee4' ]

print "%s is the chosen one!" % (random.choice(candidates))
Jul 18 '05 #1
1 1944
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" <gu***@looze.net> schreef in bericht
news:3f*********************@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))

Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ken North | last post by:
There will be a panel discussion on March 15 that's a special event at Software Development 2004 -- it's free to anyone who pre-registers for an expo pass. "Software Trends: Marrying SQL, XML,...
6
by: Mike Daniel | last post by:
I am attempting to use document.write(pageVar) that displays a new html page within a pop-up window and the popup is failing. Also note that pageVar is a complete HTML page containing other java...
6
by: Elidel | last post by:
My coffee maker was all moldy and slimey, so I bough a cheap little drip cone, that I fill manually with water. It sits right on my coffee cup, so I use a measuring cup to heat the water in the...
3
by: Water Cooler v2 | last post by:
Questions: 1. Can there be more than a single script block in a given HEAD tag? 2. Can there be more than a single script block in a given BODY tag? To test, I tried the following code. None...
2
by: bilaribilari | last post by:
Hi all, I am using Tidy (C) for parsing html pages. I encountered a page that has some script as follows: <script> .... var abc = "<script>some stuff here</" + "script>"; .... </script>
0
by: bs866806 | last post by:
Flavored coffee syrup is a popular addition to any coffee beverage and a welcome change for any regular coffee drinker. Whether you are looking to satisfy a sweet tooth or just want something...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.