What is the LEGB rule for?
What is the LEGB rule for?
a. This is the rule by which Python executes instructions.
b. This is the rule by which Python resolves names. The letters in LEGB stand for Local, Enclosing, Global and Built-in scope.
c. This is the rule by which Python manages memory.