def factorial(x):

if x<0:

return "none"

elif float(x) != int(x):

return "none"

elif x==0:

return 1

elif x>1:

while (x-1)>0:

return x*factorial(x-1)

else:

return 1

when I submit this by itself it tells me that factorial(1) gives None as an output.

If I write print factorial(3) and submit it gives me errors on lines 10 and 13