n = int(input('Enter a value')) i=1 fact = 1 while i<=n: fact = fact*i i = i+1 print('Factorial=',fact)
Father of Python Language
Makeitsimple.co.in