Learning course: Learn Python
Problem Link: CodeChef: Practical coding for everyone
Feedback
as per given solution they are using variable i and n to solve this, but there is no need of i. It can be solved without i.
n = int(input())
factorial = 1
while n > 0:
factorial = factorial * n
n = n - 1
print(“The factorial of the given number is:”, factorial)