Should be just:
print '\n'.join([str(factorial(x)) for x in range(0, 6)])
1
solved Printing every item on a new line in Python [duplicate]
Should be just:
print '\n'.join([str(factorial(x)) for x in range(0, 6)])
1
solved Printing every item on a new line in Python [duplicate]