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]
The LEGB rule explains the 4 types of scopes for variables in Python. What is an example of variable of the last scope,
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am