EXTRA-LONG-FACTORIALS hackerrank Solution - Correct, Optimal and Working

f = 1
n = int(raw_input())
for i in range(1, n+1):
    f *= i
print(f)

Subscribe to my weekley newsletter