Skip to content

Commit 74563d4

Browse files
author
Tim Sinaeve
committed
WIP
1 parent d013018 commit 74563d4

File tree

2 files changed

+222
-87
lines changed

2 files changed

+222
-87
lines changed

Comprehensions.ipynb

+14-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# Comprehensions"
8+
]
9+
},
310
{
411
"cell_type": "code",
512
"execution_count": 19,
@@ -19,32 +26,29 @@
1926
"cell_type": "markdown",
2027
"metadata": {},
2128
"source": [
22-
"# List comprehensions (listcomps)"
29+
"## List comprehensions (listcomps)"
2330
]
2431
},
2532
{
2633
"cell_type": "code",
27-
"execution_count": 20,
34+
"execution_count": 1,
2835
"metadata": {},
2936
"outputs": [
3037
{
3138
"data": {
32-
"text/html": [
33-
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"font-weight: bold\">[</span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">36</span>, <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">162</span>, <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">163</span>, <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">165</span>, <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">8364</span>, <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">164</span><span style=\"font-weight: bold\">]</span>\n",
34-
"</pre>\n"
35-
],
3639
"text/plain": [
37-
"\u001b[1m[\u001b[0m\u001b[1;36m36\u001b[0m, \u001b[1;36m162\u001b[0m, \u001b[1;36m163\u001b[0m, \u001b[1;36m165\u001b[0m, \u001b[1;36m8364\u001b[0m, \u001b[1;36m164\u001b[0m\u001b[1m]\u001b[0m\n"
40+
"[36, 162, 163, 165, 8364, 164]"
3841
]
3942
},
43+
"execution_count": 1,
4044
"metadata": {},
41-
"output_type": "display_data"
45+
"output_type": "execute_result"
4246
}
4347
],
4448
"source": [
4549
"symbols = '$¢£¥€¤'\n",
4650
"codes = [ord(symbol) for symbol in symbols]\n",
47-
"print (codes)"
51+
"codes"
4852
]
4953
},
5054
{
@@ -135,7 +139,7 @@
135139
"cell_type": "markdown",
136140
"metadata": {},
137141
"source": [
138-
"# Dict comprehensions (dictcomps)"
142+
"## Dict comprehensions (dictcomps)"
139143
]
140144
},
141145
{

0 commit comments

Comments
 (0)