Skip to content

Glossary: Python Basics

ValueError

The exception raised when a value has the right type but wrong content, such as `int("ten")`. It is also what `list.remove` raises when the item is missing.

Where the book teaches it

Related terms

try and except