Hi,

I don't seem to be getting the result I wish for and i cannot work out why the result is not a factorial.

What am i missing?

```
def factorial(x):
result = 1
if x > 0 and x == int:
while x > 0:
n = x - 1
total = x * n
x - 1
return result
```