Skip to content

Commit 9d59cff

Browse files
committed
Another attempt
1 parent 6297397 commit 9d59cff

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

python-namespace/globa_stmt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
x = 20
22

33

4-
def f(): # noqa
4+
def f():
55
global x
66
x = 40
77
print(x)

python-namespace/locals_func.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
def func(x, y): # noqa
1+
def func(x, y):
22
message = "Hello!"
33
print(locals())
44

python-namespace/mutability.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
x = 20
22

33

4-
def f(): # noqa
4+
def f():
55
x = 40
66
print(x)
77

@@ -13,7 +13,7 @@ def f(): # noqa
1313
fruits = ["apple", "banana", "cherry", "mango"]
1414

1515

16-
def f(): # noqa
16+
def f():
1717
fruits[1] = "peach"
1818

1919

0 commit comments

Comments
 (0)