I'm trying to create a list of everything that needs to be multiplied to get the factorial, and then multiply each item in that list by the next. I keep getting the error "factorial(1) returned [1, 0] instead of 1"

```
def factorial(x):
y = [x]
for number in y:
number -= 1
y.append(number)
return y
for number in y:
product = 1
product *= number
return product
```