Skip to content

Commit 378f18a

Browse files
author
Rise Riyo
committed
added statement describing first list comprehension example, squared_numbers
1 parent 9a1fac5 commit 378f18a

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

part-4.ipynb

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"metadata": {
33
"name": "",
4-
"signature": "sha256:cc99296d9dd44c36671918c973d625cd8d0fe7b970a61ec7421d066817a07826"
4+
"signature": "sha256:b02dd13be9c0f96660878e4759dcf7b7da0240b3dd4bd44e2891d8034d7299a9"
55
},
66
"nbformat": 3,
77
"nbformat_minor": 0,
@@ -106,7 +106,8 @@
106106
],
107107
"language": "python",
108108
"metadata": {},
109-
"outputs": []
109+
"outputs": [],
110+
"prompt_number": 6
110111
},
111112
{
112113
"cell_type": "code",
@@ -118,6 +119,13 @@
118119
"metadata": {},
119120
"outputs": []
120121
},
122+
{
123+
"cell_type": "markdown",
124+
"metadata": {},
125+
"source": [
126+
"Note how our list comprehension is written within the brackets: The for-loop statement is written at the end whereas the action inside of the for-loop is written first: n * n"
127+
]
128+
},
121129
{
122130
"cell_type": "markdown",
123131
"metadata": {},

0 commit comments

Comments
 (0)