I'm just a little suspicious if this is bugged at all. It works supposedly.

If this does indeed work, is it written poorly/ not very robust? I thought the solution would need a little more complexity than this.

```
def factorial(x):
for n in range(1, x):
x = x * n
return x
```