İçiçe fonksiyon örneği
This commit is contained in:
parent
1c11f9a874
commit
2acaba9e46
|
@ -0,0 +1,9 @@
|
|||
def foo():
|
||||
x = 10
|
||||
def bar():
|
||||
x = 20 # yeni bir x
|
||||
print(x)
|
||||
bar()
|
||||
print(x)
|
||||
|
||||
foo()
|
Loading…
Reference in New Issue