Tar litt tid å kjøre. Et lite stykke Python kode:
Kode
import thread
import time
def howmanybeers(beers, sleeptime):
time.sleep(sleeptime)
print("""
%d bottles of beer on the wall, %d bottles of beer.
Take one down, pass it around, %d bottles of beer on the wall...
"""
%
(beers, beers, beers - 1)
)
for x in range(1, 100):
thread.start_new_thread(howmanybeers, (x, 100 - x))
time.sleep(100)
print("No more bottles of beer on the wall, no more bottles of beer")
print("Go to the store and buy some more, 99 bottles of beer on the wall...")