<prompt> Write a Python program to find the factorial of the given number.7  <response>: Here is a Python program to find the factorial of a given number:n intinputEnter a number: factorial 1if n 0: printFactorial does not exist for negative numberselif n 0: printThe factorial of 0 is 1else: for i in range1, n 1: factorial factorial i printThe factorial of, n , is, factorialFor the given input of 7, the program would return the output:Enter a number: 7The factorial of 7 is 5040 