Review Note

Last Update: 05/03/2024 09:06 PM

Current Deck: Python::Python - Advanced

Published

Fields:

Front
Why would you get an UnboundLocalError?
Back
Python doesn't have variable declarations, so it has to figure out the scope of variables itself. It does so by a simple rule: If there is an assignment to a variable inside a function, that variable is considered local.

Suggested Changes:

Deck Changes (Suggestion to move the Note to the following Deck):

Field Changes:

Tag Changes: