Skip to content

Commit 8fcd856

Browse files
author
Rise Riyo
committed
clarify that dictionary keys are unique
1 parent 4086b82 commit 8fcd856

File tree

1 file changed

+12
-48
lines changed

1 file changed

+12
-48
lines changed

part-4.ipynb

Lines changed: 12 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"metadata": {
33
"name": "",
4-
"signature": "sha256:41bc5d1c6fb1cdc92efcc3828d0235da81a447e043207eefd3d40068917804ab"
4+
"signature": "sha256:c279b3f8b75d5270e572bf063ff7315c08e1c5547ca24c870694ccddb2fb997d"
55
},
66
"nbformat": 3,
77
"nbformat_minor": 0,
@@ -41,8 +41,7 @@
4141
],
4242
"language": "python",
4343
"metadata": {},
44-
"outputs": [],
45-
"prompt_number": 3
44+
"outputs": []
4645
},
4746
{
4847
"cell_type": "markdown",
@@ -61,8 +60,7 @@
6160
],
6261
"language": "python",
6362
"metadata": {},
64-
"outputs": [],
65-
"prompt_number": 4
63+
"outputs": []
6664
},
6765
{
6866
"cell_type": "code",
@@ -72,17 +70,7 @@
7270
],
7371
"language": "python",
7472
"metadata": {},
75-
"outputs": [
76-
{
77-
"metadata": {},
78-
"output_type": "pyout",
79-
"prompt_number": 5,
80-
"text": [
81-
"[1, 1, 4, 9, 25, 64, 169, 441, 1156, 3025, 7921]"
82-
]
83-
}
84-
],
85-
"prompt_number": 5
73+
"outputs": []
8674
},
8775
{
8876
"cell_type": "markdown",
@@ -106,8 +94,7 @@
10694
],
10795
"language": "python",
10896
"metadata": {},
109-
"outputs": [],
110-
"prompt_number": 6
97+
"outputs": []
11198
},
11299
{
113100
"cell_type": "code",
@@ -145,8 +132,7 @@
145132
],
146133
"language": "python",
147134
"metadata": {},
148-
"outputs": [],
149-
"prompt_number": 15
135+
"outputs": []
150136
},
151137
{
152138
"cell_type": "markdown",
@@ -166,8 +152,7 @@
166152
],
167153
"language": "python",
168154
"metadata": {},
169-
"outputs": [],
170-
"prompt_number": 16
155+
"outputs": []
171156
},
172157
{
173158
"cell_type": "code",
@@ -177,17 +162,7 @@
177162
],
178163
"language": "python",
179164
"metadata": {},
180-
"outputs": [
181-
{
182-
"metadata": {},
183-
"output_type": "pyout",
184-
"prompt_number": 17,
185-
"text": [
186-
"['Audrey', 'Alain']"
187-
]
188-
}
189-
],
190-
"prompt_number": 17
165+
"outputs": []
191166
},
192167
{
193168
"cell_type": "markdown",
@@ -204,8 +179,7 @@
204179
],
205180
"language": "python",
206181
"metadata": {},
207-
"outputs": [],
208-
"prompt_number": 18
182+
"outputs": []
209183
},
210184
{
211185
"cell_type": "code",
@@ -215,27 +189,17 @@
215189
],
216190
"language": "python",
217191
"metadata": {},
218-
"outputs": [
219-
{
220-
"metadata": {},
221-
"output_type": "pyout",
222-
"prompt_number": 19,
223-
"text": [
224-
"['Audrey', 'Alain']"
225-
]
226-
}
227-
],
228-
"prompt_number": 19
192+
"outputs": []
229193
},
230194
{
231195
"cell_type": "markdown",
232196
"metadata": {},
233197
"source": [
234198
"## Dictionaries\n",
235199
"\n",
236-
"Unlike lists, dictionaries are indexed by keys. Dictionaries can be used to represent unordered key-value pairs. Keys are used for lookup and their values are returned.\n",
200+
"Unlike lists, dictionaries are indexed by keys. Dictionaries can be used to represent unordered key-value pairs. Keys are unique and are used for looking up values assigned to them.\n",
237201
"\n",
238-
"Let's make an Spanish to English translator. We'll ignore grammar and just translate word-by-word for now."
202+
"Let's make a Spanish to English translator. We'll ignore grammar and just translate word-by-word for now."
239203
]
240204
},
241205
{

0 commit comments

Comments
 (0)