Skip to content

Commit d687444

Browse files
committed
List
1 parent b5dde0f commit d687444

File tree

1 file changed

+47
-15
lines changed

1 file changed

+47
-15
lines changed

List.ipynb

Lines changed: 47 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"### List"
8+
]
9+
},
310
{
411
"cell_type": "code",
5-
"execution_count": 1,
12+
"execution_count": null,
613
"metadata": {},
7-
"outputs": [
8-
{
9-
"data": {
10-
"text/plain": [
11-
"[1, 2, 3]"
12-
]
13-
},
14-
"execution_count": 1,
15-
"metadata": {},
16-
"output_type": "execute_result"
17-
}
18-
],
14+
"outputs": [],
1915
"source": [
2016
"[1,2,3]"
2117
]
@@ -386,9 +382,17 @@
386382
},
387383
{
388384
"cell_type": "code",
389-
"execution_count": null,
385+
"execution_count": 24,
390386
"metadata": {},
391-
"outputs": [],
387+
"outputs": [
388+
{
389+
"name": "stdout",
390+
"output_type": "stream",
391+
"text": [
392+
"['a', 'b', 'c', 1, 2, 3]\n"
393+
]
394+
}
395+
],
392396
"source": [
393397
"list1 = [\"a\", \"b\" , \"c\"]\n",
394398
"list2 = [1, 2, 3]\n",
@@ -398,6 +402,34 @@
398402
"\n",
399403
"print(list1)"
400404
]
405+
},
406+
{
407+
"cell_type": "code",
408+
"execution_count": 25,
409+
"metadata": {},
410+
"outputs": [
411+
{
412+
"name": "stdout",
413+
"output_type": "stream",
414+
"text": [
415+
"['a', 'b', 'c', 1, 2, 3]\n"
416+
]
417+
}
418+
],
419+
"source": [
420+
"list1 = [\"a\", \"b\" , \"c\"]\n",
421+
"list2 = [1, 2, 3]\n",
422+
"\n",
423+
"list1.extend(list2)\n",
424+
"print(list1)"
425+
]
426+
},
427+
{
428+
"cell_type": "code",
429+
"execution_count": null,
430+
"metadata": {},
431+
"outputs": [],
432+
"source": []
401433
}
402434
],
403435
"metadata": {

0 commit comments

Comments
 (0)