ID EN
Built-in Exceptions

ValueError

Python 3.11

Raised when an operation or function receives an argument that has the right type but an inappropriate value, and the situation is not described by a more precise exception such as IndexError.

Syntax

PYTHON
exception ValueError

See Also

IndexError