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.
anonymous
Anonymous writes: I have seen Americans using it. "Sorry, my b ...
anonymous
vaibhi writes: i am stuck t the level 21 i got the cute things ...
anonymous
Anonymous writes: any hints for lvl 9 ??? pls help... dat horse ...
anonymous
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 ...
| 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
US golfer Tiger Woods says he is taking an indefinite break from the sport, after publicly admitting his "infidelity" for the first time.
Thousands of people march in Australia as part of global protests to demand action at UN climate talks in Copenhagen.
A suspected key al-Qaeda figure is thought to have been killed in a drone strike in Pakistan last week, US officials say.
The United States and Japan agree to a new "open skies" deal cutting restrictions on flights between the two countries.
Turkey's highest court bans the country's largest pro-Kurdish party over alleged links with Kurdish separatist rebels.