#Will this work?
def fractal(i):
    if i<=1:
        return 1
    else:
        return i*fractal(i-1)

for i in xrange(10):
    print fractal(i)