Skip to content

Commit c8bd64f

Browse files
author
giumas
committed
removed supplemental notebooks about classes
1 parent f59b696 commit c8bd64f

7 files changed

+7
-1423
lines changed

007_Dictionaries_and_Metadata.ipynb

+1-17
Original file line numberDiff line numberDiff line change
@@ -134,36 +134,20 @@
134134
"By now, you may have noticed that the `str` variables in the above `chem_dict` are printed within single quotes `'` rather than double quotes `\"`. This is an alternative and valid way to define strings in Python. However, mixing `'` and `\"` in the same string results in an error. For consistency, we always use `\"` here."
135135
]
136136
},
137-
{
138-
"cell_type": "markdown",
139-
"metadata": {},
140-
"source": [
141-
"## A `dict` is unordered"
142-
]
143-
},
144137
{
145138
"cell_type": "markdown",
146139
"metadata": {},
147140
"source": [
148141
"When you print the content of a dictionary, you may have the items presented in an order that differs from the one that you used to populate the `dict`. This is **not** an error, but a specific property of a `dict`."
149142
]
150143
},
151-
{
152-
"cell_type": "markdown",
153-
"metadata": {},
154-
"source": [
155-
"<img align=\"left\" width=\"6%\" style=\"padding-right:10px;\" src=\"images/key.png\">\n",
156-
"\n",
157-
"A `dict` is an **unordered** container. The order of items insertion is not preserved."
158-
]
159-
},
160144
{
161145
"cell_type": "markdown",
162146
"metadata": {},
163147
"source": [
164148
"<img align=\"left\" width=\"6%\" style=\"padding-right:10px;\" src=\"images/info.png\">\n",
165149
"\n",
166-
"If you need to preserve the items order, Python provides a special dictionary called [`OrderedDict`](https://docs.python.org/3.6/library/collections.html?highlight=ordereddict#ordereddict-objects)."
150+
"A `dict` is an **unordered** container. The order of items insertion is not preserved. If you need to preserve the items order, Python provides a special dictionary called [`OrderedDict`](https://docs.python.org/3.6/library/collections.html?highlight=ordereddict#ordereddict-objects)."
167151
]
168152
},
169153
{

008_A_Class_as_a_Data_Container.ipynb

+3-2
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@
349349
"source": [
350350
"<img align=\"left\" width=\"6%\" style=\"padding-right:10px;\" src=\"images/info.png\">\n",
351351
"\n",
352-
"If you are interested in learning more about classes, you may read [this supplemental notebook](SUP_First_Steps_of_a_Class.ipynb)."
352+
"If you are interested in learning more about classes, you may want to explore the [Foundations of Ocean Data Science](https://www.hydroffice.org/manuals/epom/foundations_of_ocean_data_science.html) notebooks."
353353
]
354354
},
355355
{
@@ -373,7 +373,8 @@
373373
"metadata": {},
374374
"source": [
375375
"* [The official Python 3.6 documentation](https://docs.python.org/3.6/index.html)\n",
376-
" * [Classes](https://docs.python.org/3.6/tutorial/classes.html)"
376+
" * [Classes](https://docs.python.org/3.6/tutorial/classes.html)\n",
377+
"* [Foundations of Ocean Data Science](https://www.hydroffice.org/manuals/epom/foundations_of_ocean_data_science.html)"
377378
]
378379
},
379380
{

009_Summing-Up.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@
258258
"\n",
259259
"We can check the success of this operation by printing depths and sound speed values. We will do this by accessing the values by index with the help of the [`range()`](https://docs.python.org/3.6/library/stdtypes.html?#range) type.\n",
260260
"\n",
261-
"A `range()` with an integer value as single parameter represents a sequence of numbers ranging from 0 to the value passed as a parameter. In the code below, we use `range` with `10`:"
261+
"A `range()` with an integer value as single parameter represents a sequence of numbers ranging from 0 up to (but not including) the value passed as a parameter. In the code below, we use `range` with `10`:"
262262
]
263263
},
264264
{

0 commit comments

Comments
 (0)