Skip to content

Commit 88d5b5c

Browse files
committed
nested_scop_local_veriabel_example
1 parent cc4b078 commit 88d5b5c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Local Reassigment!
2+
x=200
3+
print(f"just localy change x to {x}")
4+
5+
# How To Run
6+
# local_ocal_example.py"
7+
# output just localy change x to 200
8+
9+
def myfunc():
10+
x = 300 #local veriabal
11+
print(x)
12+
13+
myfunc()
14+
15+
# How To Run
16+
# local_ocal_example.py"
17+
# output 300

0 commit comments

Comments
 (0)