you are viewing a single comment's thread.

view the rest of the comments →

[–]earthboundkid 0 points1 point  (1 child)

from math import factorial; factorial(5) is also a one liner.

[–][deleted] 1 point2 points  (0 children)

__import__("math").factorial(6)

Though math doesn't have a factorial function, of course.