Home
Press ? for keyboard navigation
❮
Name resolution order (LEGB)
Assignment creates local scope
❯
Scoping: global seen from fuction
examples/advanced/scoping_local_variable.py
a
=
42
def
f
():
print
(
a
)
f
()
42
Index (i)
Table of Contents (t)
Indexed keywords (k)
Chapter TOC (d)
Hide/Show (h)