scope 8
This commit is contained in:
parent
f65f0d28c1
commit
aea80f7b39
7
python-temel/scope.8.py
Normal file
7
python-temel/scope.8.py
Normal 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!
|
Loading…
Reference in New Issue
Block a user