Skip to content

Commit 5417231

Browse files
committed
Array
1 parent e65ed72 commit 5417231

File tree

1 file changed

+42
-3
lines changed

1 file changed

+42
-3
lines changed

Diff for: 02.Arrays.ipynb

+42-3
Original file line numberDiff line numberDiff line change
@@ -983,13 +983,52 @@
983983
},
984984
{
985985
"cell_type": "code",
986-
"execution_count": null,
986+
"execution_count": 72,
987987
"metadata": {},
988-
"outputs": [],
988+
"outputs": [
989+
{
990+
"data": {
991+
"text/plain": [
992+
"1"
993+
]
994+
},
995+
"execution_count": 72,
996+
"metadata": {},
997+
"output_type": "execute_result"
998+
}
999+
],
9891000
"source": [
9901001
"arr=array.array('i',[1,3,2,4,3,5])\n",
991-
">>> arr.index(3)"
1002+
"arr.index(3)"
1003+
]
1004+
},
1005+
{
1006+
"cell_type": "code",
1007+
"execution_count": 73,
1008+
"metadata": {},
1009+
"outputs": [
1010+
{
1011+
"data": {
1012+
"text/plain": [
1013+
"array('i', [1, 2, 4, 3, 5])"
1014+
]
1015+
},
1016+
"execution_count": 73,
1017+
"metadata": {},
1018+
"output_type": "execute_result"
1019+
}
1020+
],
1021+
"source": [
1022+
"arr.remove(3)\n",
1023+
"arr"
9921024
]
1025+
},
1026+
{
1027+
"cell_type": "code",
1028+
"execution_count": null,
1029+
"metadata": {},
1030+
"outputs": [],
1031+
"source": []
9931032
}
9941033
],
9951034
"metadata": {

0 commit comments

Comments
 (0)