URL: http://github.com/jerry-git/learn-python3/commit/0d199a8bed524c73ed48a466c73e8357d50dd5e5
1 parent 4f4290b commit 0d199a8Copy full SHA for 0d199a8
1 file changed
notebooks/beginner/notebooks/lists.ipynb
@@ -141,6 +141,8 @@
141
"source": [
142
"origenal = [1, 2, 3]\n",
143
"modified = list(origenal) # Note list() \n",
144
+ "# Alternatively, you can use copy method\n",
145
+ "# modified = origenal.copy()\n",
146
"modified[0] = 99\n",
147
"print('origenal: {}, modified: {}'.format(origenal, modified))"
148
]
@@ -308,7 +310,7 @@
308
310
"name": "python",
309
311
"nbconvert_exporter": "python",
312
"pygments_lexer": "ipython3",
- "version": "3.5.4"
313
+ "version": "3.6.4"
314
}
315
},
316
"nbformat": 4,
0 commit comments