Please tell me why this python code to find factorial is incorrect. I used while loop, and it's not working, I don't know why.
n = input("Enter number ")
def factorial(n):
while n >= 0:
if n == 0:
return 1
else:
return n * factorial(n-1)
print("Incorrect Input")