scope 4
This commit is contained in:
parent
f39574da28
commit
528a29f9d1
8
python-temel/scope.4.py
Normal file
8
python-temel/scope.4.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
x = 100
|
||||
|
||||
def foo():
|
||||
x = 200
|
||||
print(x) # yerel 200 çıkar
|
||||
|
||||
foo()
|
||||
print(x) # global 100 çıkar
|
Loading…
Reference in New Issue
Block a user