Werewolf is coming...
Wednesday, 7. November 2007, 13:59:37
And a shaft of light shall sunder the heavens...
Saturday, 27. October 2007, 13:56:52
Sunday, 30. September 2007, 11:26:43
Tuesday, 11. September 2007, 15:18:12
Monday, 23. July 2007, 15:44:00
Tuesday, 19. June 2007, 15:13:08

Thursday, 14. June 2007, 16:52:37

def transfer(discs, source, destination, storage) :
# If there is nothing to transfer, do nothing.
if discs == 0 :
return
# Transfer all but the last disc to the temporary storage location
transfer(discs - 1, source, storage, destination)
# Transfer the last disc to the destination
print "Moving disc %d from %s to %s" % (discs, source, destination)
# Transfer all but the last disc from the temporary storage to the
# destination
transfer(discs - 1, storage, destination, source)
def main() :
n = int(raw_input("Enter the number of discs : "))
source = 'A'
destination = 'B'
storage = 'C'
transfer(n, source, destination, storage)
transfer(n, source, destination, storage)
(sykora@nexus)(pts/3 | 0 job(s))(Thursday June 14, 2007 : 22:08:54) (%:python)- python2.5 hanoi.py Enter the number of discs : 3 Moving disc 1 from A to B Moving disc 2 from A to C Moving disc 1 from B to C Moving disc 3 from A to B Moving disc 1 from C to A Moving disc 2 from C to B Moving disc 1 from A to B Enter the number of discs : 4 Moving disc 1 from A to C Moving disc 2 from A to B Moving disc 1 from C to B Moving disc 3 from A to C Moving disc 1 from B to A Moving disc 2 from B to C Moving disc 1 from A to C Moving disc 4 from A to B Moving disc 1 from C to B Moving disc 2 from C to A Moving disc 1 from B to A Moving disc 3 from C to B Moving disc 1 from A to C Moving disc 2 from A to B Moving disc 1 from C to B Enter the number of discs : 5 Moving disc 1 from A to B Moving disc 2 from A to C Moving disc 1 from B to C Moving disc 3 from A to B Moving disc 1 from C to A Moving disc 2 from C to B Moving disc 1 from A to B Moving disc 4 from A to C Moving disc 1 from B to C Moving disc 2 from B to A Moving disc 1 from C to A Moving disc 3 from B to C Moving disc 1 from A to B Moving disc 2 from A to C Moving disc 1 from B to C Moving disc 5 from A to B Moving disc 1 from C to A Moving disc 2 from C to B Moving disc 1 from A to B Moving disc 3 from C to A Moving disc 1 from B to C Moving disc 2 from B to A Moving disc 1 from C to A Moving disc 4 from C to B Moving disc 1 from A to B Moving disc 2 from A to C Moving disc 1 from B to C Moving disc 3 from A to B Moving disc 1 from C to A Moving disc 2 from C to B Moving disc 1 from A to B
3 : 7 4 : 15 5 : 31 ...
Thursday, 14. June 2007, 12:08:46
def guess(n) :
while True :
x = int(raw_input('Enter a number : '))
if x < n :
print 'You're too low.'
if x > n :
print 'You're too high.'
if x == n :
print 'You're absolutely right.'
return
def guess(n) :
x = int(raw_input('Enter a number : '))
if x < n :
print 'You're too low.'
guess(n)
return
if x > n :
print 'You're too high.'
guess(n)
return
if x == n :
print 'You're absolutely right.'
return
Friday, 1. June 2007, 05:03:09
Friday, 25. May 2007, 17:44:47
Showing posts 1 - 10 of 107.
sykora
2007-06-19 15:16:00
Shouting at myself is a symptom of madness, or so they say. Oh what the heck, I'll do it anyway.
anonymous
Anonymous writes: hello, im from brazil but im in canada and i ...
anonymous
elz writes: can sumbody plz help me wid level 12.......... Itz ...
anonymous
Alysha Jo writes: OMG i LOVE the lion the witch and the wardro ...
anonymous
anonymous
anonymous
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
| ||||||
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | |||||
Anusha's first expedition in the blogosphere.
Light Humor, nothing too deep though
Read it to believe.
My estranged friend finds a new place to vent his insanity.
Malaysia, Nature and Bichon Frise
I can't describe it, go see for yourself.
PK's blog
What the name says
Ravings of a Soccer Maniac
Well...um...er...
The Software and Productivity Guide. Hack your life!
The Gadget Guide. Gadgetize your world!
The Gaming Guide Kotaku.
Politics for the obliquely inclined.
What Lonely Planet missed or forgot entirely.
Lokon's new paradise.
Social Bookmarking - Why do the work when everyone else has already done it for you?
User Contributed, User Verified Tech News Domain
Prime Minister Kevin Rudd apologises to the hundreds of thousands of children abused or neglected in state care.
Strong figures for a second quarter in a row confirm Japan's recovery from recession, showing a 1.2% boost over three months.
Four people are killed and a number injured in an explosion outside a police station in the Pakistani city of Peshawar.
The space shuttle Atlantis is scheduled to blast off from Florida to deliver equipment to the International Space Station.
A former prostitute whose memoirs were turned into the TV series Secret Diary of a Call Girl reveals her true identity.