global and nested error
This commit is contained in:
parent
25e46a745c
commit
2f78653501
8
python-temel/global.and.nested.error.2.py
Normal file
8
python-temel/global.and.nested.error.2.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
bar = 10
|
||||
|
||||
def foo():
|
||||
#print(bar) # error!
|
||||
bar = 20
|
||||
print(bar)
|
||||
|
||||
foo()
|
8
python-temel/global.and.nested.error.2.py~
Normal file
8
python-temel/global.and.nested.error.2.py~
Normal file
|
@ -0,0 +1,8 @@
|
|||
bar = 10
|
||||
|
||||
def foo():
|
||||
print(bar) # error!
|
||||
bar = 20
|
||||
print(bar)
|
||||
|
||||
foo()
|
Loading…
Reference in New Issue
Block a user