Skip to content

Commit 591a79c

Browse files
committed
some trimming
1 parent 0286431 commit 591a79c

File tree

1 file changed

+1
-60
lines changed

1 file changed

+1
-60
lines changed

content/01-python/w2-python-advanced-datatypes.ipynb

Lines changed: 1 addition & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -201,36 +201,6 @@
201201
"a"
202202
]
203203
},
204-
{
205-
"cell_type": "markdown",
206-
"metadata": {},
207-
"source": [
208-
"Note that lists can even contain other lists:"
209-
]
210-
},
211-
{
212-
"cell_type": "code",
213-
"execution_count": 8,
214-
"metadata": {
215-
"tags": []
216-
},
217-
"outputs": [
218-
{
219-
"data": {
220-
"text/plain": [
221-
"[-1, ['other list', 3], -2.0, 'my list', 4]"
222-
]
223-
},
224-
"execution_count": 8,
225-
"metadata": {},
226-
"output_type": "execute_result"
227-
}
228-
],
229-
"source": [
230-
"a[1] = [\"other list\", 3]\n",
231-
"a"
232-
]
233-
},
234204
{
235205
"cell_type": "markdown",
236206
"metadata": {},
@@ -803,35 +773,6 @@
803773
"squares"
804774
]
805775
},
806-
{
807-
"cell_type": "markdown",
808-
"metadata": {},
809-
"source": [
810-
"here we use another python type, the tuple, to combine numbers from two lists into a pair"
811-
]
812-
},
813-
{
814-
"cell_type": "code",
815-
"execution_count": 28,
816-
"metadata": {
817-
"tags": []
818-
},
819-
"outputs": [
820-
{
821-
"data": {
822-
"text/plain": [
823-
"[(1, 3), (1, 4), (2, 3), (2, 1), (2, 4), (3, 1), (3, 4)]"
824-
]
825-
},
826-
"execution_count": 28,
827-
"metadata": {},
828-
"output_type": "execute_result"
829-
}
830-
],
831-
"source": [
832-
"[(x, y) for x in [1,2,3] for y in [3,1,4] if x != y]"
833-
]
834-
},
835776
{
836777
"cell_type": "markdown",
837778
"metadata": {},
@@ -1089,7 +1030,7 @@
10891030
"name": "python",
10901031
"nbconvert_exporter": "python",
10911032
"pygments_lexer": "ipython3",
1092-
"version": "3.11.6"
1033+
"version": "3.12.1"
10931034
}
10941035
},
10951036
"nbformat": 4,

0 commit comments

Comments
 (0)