x = int(input("Enter a number: "))

def factorial(x):

----digit = 1

----if x < 0:

------print "Sorry, factorial does not exist for \

------negative numbers"

----else:

------for i in range(1, x + 1):

---------digit = digit * i

---------print digit

---------print "The factorial of ",x," is ",digit

------return digit

This seems to pass whatever checker Codecademy uses, but it doesn't actually return any of the print commands. My input works, but then no matter what I put in, I just get Codecademy's "None" output. What have I got screwed up in here?