Page 1 of 1

The LEGB rule explains the 4 types of scopes for variables in Python. What is an example of variable of the last scope,

Posted: Tue Jul 12, 2022 8:21 am
by answerhappygod
The LEGB rule explains the 4 types of scopes for variables inPython. What is an example of variable of the last scope,"B"?
myClass = new myclass()
x = 34
print()
s = [1,2,3]