Built-in Exceptions — Python 3 documentation#ValueError

exception ValueError

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.

Printed 2026-06-28.

(echo:: @ )