içiçe fonksiyon örneği

This commit is contained in:
Mert Gör 🇹🇷 2023-06-04 13:14:14 +03:00
parent 2acaba9e46
commit 502d5a02d9
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,10 @@
def foo():
x = 10
def bar():
#print(x) # error
x = 20
print(x)
bar()
print(x)
foo()

View File

@ -0,0 +1,10 @@
def foo():
x = 10
def bar():
print(x) # error
x = 20
print(x)
bar()
print(x)
foo()