ID EN
Built-in Exceptions

NameError

Python 3.11

Raised when a local or global name is not found. This applies only to unqualified names. The associated value is an error message that includes the name that could not be found.

Syntax

PYTHON
exception NameError