Skip to content

Glossary: Coding with AI Assistants

raise

A Python statement that stops the function and reports an error, such as `raise ValueError("Unknown SKU: blue-mugs")`.

Where the book teaches it

Related terms

ValueErrorpytest.raises