Binding Occurrence

suggest change
x = 5
x += 7
for x in iterable: pass

Each of the above statements is a binding occurrence - x become bound to the object denoted by 5. If this statement appears inside a function, then x will be function-local by default. See the “Syntax” section for a list of binding statements.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Variable Scope and Binding:
*Binding Occurrence

Table Of Contents
13Variable Scope and Binding
31Set
166Gzip