Skip to content

Glossary: Python Basics

raise

Also written: raising an error

A keyword that makes your own code report an exception, such as `raise ValueError("Not enough stock")`.

Where the book teaches it

Related terms

try and except