Skip to content

Commit e88ae55

Browse files
committed
updated
1 parent 93f6500 commit e88ae55

File tree

2 files changed

+27
-33
lines changed

2 files changed

+27
-33
lines changed

01-python-practices.ipynb

-33
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,5 @@
11
{
22
"cells": [
3-
{
4-
"cell_type": "code",
5-
"execution_count": 3,
6-
"id": "2d65d399",
7-
"metadata": {},
8-
"outputs": [
9-
{
10-
"name": "stdout",
11-
"output_type": "stream",
12-
"text": [
13-
"2\n",
14-
"3\n",
15-
"4\n",
16-
"5\n",
17-
"6\n",
18-
"7\n",
19-
"8\n",
20-
"9\n",
21-
"10\n",
22-
"11\n"
23-
]
24-
}
25-
],
26-
"source": []
27-
},
28-
{
29-
"cell_type": "code",
30-
"execution_count": null,
31-
"id": "f6eff556",
32-
"metadata": {},
33-
"outputs": [],
34-
"source": []
35-
},
363
{
374
"cell_type": "code",
385
"execution_count": 7,

04-python-lists.ipynb

+27
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,33 @@
644644
"str = ''.join(tuplex)\n",
645645
"print(str)"
646646
]
647+
},
648+
{
649+
"cell_type": "code",
650+
"execution_count": 2,
651+
"metadata": {},
652+
"outputs": [
653+
{
654+
"name": "stdout",
655+
"output_type": "stream",
656+
"text": [
657+
"[1, 3, 5, 7]\n",
658+
"[1, 3, 5, 7, 9, 11, 13, 15]\n"
659+
]
660+
}
661+
],
662+
"source": [
663+
"#appending and extending in a list\n",
664+
"odd = [1,3,5]\n",
665+
"\n",
666+
"odd.append(7)\n",
667+
"\n",
668+
"print(odd)\n",
669+
"\n",
670+
"odd.extend([9,11,13,15])\n",
671+
"\n",
672+
"print(odd)"
673+
]
647674
}
648675
],
649676
"metadata": {

0 commit comments

Comments
 (0)