Answer:
in which app we had to join
Answer:
The python function is as follows:
def fact(N):
factorial = 1
for i in range(1,N+1):
factorial = factorial * i
return(factorial)
Explanation:
This line defines the function
def fact(N):
This line initializes the product of 1 to N to 1
factorial = 1
This line iterates through 1 to N
for i in range(1,N+1):
This line calculates the product of 1 to N i.e. factorial
factorial = factorial * i
This line returns the factorial
return(factorial)
A security certificate is used to ensure that your web browser and the server you are connected to have a tamper-free, secure connection.