Skip to content

Commit 275e340

Browse files
Update pg.93.localvsglobal.py
1 parent d9fadfa commit 275e340

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pg.93.localvsglobal.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,11 @@ def bacon():
1010
eggs = 'global'
1111
bacon()
1212
print(eggs) # prints 'global'
13+
14+
'''
15+
When you run this program, it outputs the following:
16+
bacon local
17+
spam local
18+
bacon local
19+
global
20+
'''

0 commit comments

Comments
 (0)