This commit is contained in:
Mert Gör 🇹🇷 2023-05-30 16:59:33 +03:00
parent f65f0d28c1
commit aea80f7b39
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9

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

@ -0,0 +1,7 @@
def foo(x):
if x > 0:
y = 10
print(y)
foo(10) # geçerli sorun yok
#foo(-10) # exception oluşur!