This commit is contained in:
Mert Gör 🇹🇷 2023-05-29 18:34:45 +03:00
parent f39574da28
commit 528a29f9d1
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9

8
python-temel/scope.4.py Normal file
View File

@ -0,0 +1,8 @@
x = 100
def foo():
x = 200
print(x) # yerel 200 çıkar
foo()
print(x) # global 100 çıkar