Skip to content

Commit d78a382

Browse files
committed
fix error on mutable function
1 parent 414ca36 commit d78a382

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"python.formatting.provider": "autopep8",
3-
"python.pythonPath": "/usr/local/bin/python3"
3+
"python.pythonPath": "C:\\Users\\yannm\\AppData\\Local\\Programs\\Python\\Python37-32\\python.exe",
4+
"python.jediEnabled": false
45
}

Mutable/code.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11

2-
print 'Address of a is: {}'.format(id(a))
2+
a = 5
3+
4+
print('Address of a is: {}'.format(id(a)))
35

46
# a[0] = ''
57
# print a

0 commit comments

Comments
 (0)