Skip to content

Instantly share code, notes, and snippets.

// Multi-Column Articles Script
// Version 0.5.1
// Copyright (c) 2009, Raking Leaves
// Released under the GPL license
// http://www.gnu.org/copyleft/gpl.html
//
// Includes code from Hyphenator, distributed under GPL v3.
// See http://code.google.com/p/hyphenator/
//
// TODO
n = input("Enter an integer greater or equal to zero: ")
def factorial(n):
if n == 0:
return 1
else:
return (n * factorial(n - 1))
print factorial(n)