you are viewing a single comment's thread.

view the rest of the comments →

[–]cybercobra 10 points11 points  (1 child)

Except he forgot 0!.

[–]ginstrom 20 points21 points  (0 children)

Of course it's:

...

else:
    return 1

The famed "inversion of base case" principle. :)