Put the scopes in the order that Python resolves the names starting from the first scope to check.
Global vs local. Scopes
Name resolving order
Report a typo
Put the items in the correct order
Global
Local
Enclosing
Built-in
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.