Python Program to Find Factorial of n using For loop
Write Python Program to Find Factorial of n using For loop
# Write Python Program to Find Factorial of n using For loop fact = 1 n = 6 for i in range(1, n + 1): fact = fact * i print(f'{n}! = {fact}')
Output:
6! = 720