Codes works but I was hoping someone could walk me through.

When I do it on paper the factors are not multiplied together.

```
def factorial(x):
num = 1
for i in range(x): #range is 0 thru x (this case 5)does not include x (x-1)
num=num*(i+1)
print(num)
return num
print(factorial(6))
```