https://www.codecademy.com/courses/python-intermediate-en-rCQKw/0/5?curriculum_id=4f89dab3d788890003000096#

i get the error

Oops, try again. factorial(1) resulted in an error: maximum recursion depth exceeded

```
Replace this line with your code.
def factor(n):
if n > 1:
answer = n * factor(n - 1)
elif n < 1:
answer = -n * factor(-n - 1)
elif n == 0:
answer = 1
else:
answer = 1
return answer
```