scope 5
This commit is contained in:
parent
528a29f9d1
commit
64c18587e9
9
python-temel/scope.5.py
Normal file
9
python-temel/scope.5.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
x = 100
|
||||
|
||||
def foo():
|
||||
#print(x) # error
|
||||
x = 200
|
||||
print(x)
|
||||
|
||||
foo()
|
||||
print(x)
|
Loading…
Reference in New Issue
Block a user