SyntaxFix
Write A Post
Hire A Developer
Questions
Non-recursive solution, no imports:
def factorial(x): return eval(' * '.join(map(str, range(1, x + 1))))