def factorial(N): if N < 2: return 1 else: return N*factorial(N-1) for i in range(0,10): print("{0}! = {1}".format(i,factorial(i)))