E8004 Math Errors

factorial-negative

factorial requires non-negative integer

When this occurs

`math.factorial(-1)`

Example error message

error[E8004]: math.factorial() requires non-negative integer

How to fix

Pass a non-negative integer to `math.factorial()`.

Related errors