Skip to content

Glossary: Python Beyond the Basics

UnboundLocalError

The error raised when a function assigns to a name (like `+=`), making it local, but reads it before it has a value.

Where the book teaches it

Related terms

global