Skip to content

Commit 8f001f6

Browse files
committed
globel_keyword.py
1 parent 9fa0b77 commit 8f001f6

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

globel_keyword.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# a=10
2+
# def display():
3+
# global a
4+
# a=a+1
5+
# print(a)
6+
# display()
7+
8+
# def display():
9+
# a=20
10+
# def show():
11+
# global a
12+
# a=30
13+
# print(f"value of a before calling show() function is {a}")
14+
# show()
15+
# print(f"value of a after calling show() function is {a}")
16+
# display()
17+
18+
name="Jenny's"
19+
def display():
20+
global name
21+
name=name+" Lectures"
22+
print(name)
23+
display()
24+
print(name)

0 commit comments

Comments
 (0)