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
Alysha Jo writes: OMG i LOVE the lion the witch and the wardro ...
anonymous
anonymous
anonymous
anonymous
Anonymous writes: I love watching the film because it was amazi ...
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 | 31 | |
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
Michael Jackson's family is to hold a "private function" at a Los Angeles cemetery on Tuesday, the BBC learns.
France demands the release of a French academic who it says has been detained in Iran since 1 July, accused of spying.
Liberian President Ellen Johnson-Sirleaf is surprised by a commission's call to bar her from office, her spokesman says.
The world's most expensive player is presented to the fans of Europe's most decorated club
A man dies and more than 70 people are taken ill on board a cruise liner berthed in Invergordon in Easter Ross.