Concepts
ValueError
A standard Python error raised when a function receives an argument of the right type but an unacceptable value, such as a negative number where a positive one is required.
Alternate definitions 1
Definition 2Concepts
A Python error that occurs when a function receives a value of the right type but an inappropriate content — for example, passing an empty list where data is required.
Concepts · curriculum materials