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.
Glossary: Python Beyond the Basics
The error raised when a function assigns to a name (like `+=`), making it local, but reads it before it has a value.