İçiçe fonksiyon örneği

This commit is contained in:
Mert Gör ☭ 2023-06-04 07:43:05 +03:00
parent 1c11f9a874
commit 2acaba9e46
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9
1 changed files with 9 additions and 0 deletions

View File

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