Factorial of a number using while

a = int(input('Enter a number to find its factorial: '))
num = 1
while a >= 1:
 num = num * a
 a = a - 1
print('The Factorial of the number is:', num)