Skip to content

Commit 4412065

Browse files
committed
updated python version
1 parent de55788 commit 4412065

13 files changed

+45
-45
lines changed

001_Variables_and_Types.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
"source": [
214214
"<img align=\"left\" width=\"6%\" style=\"padding-right:10px;\" src=\"images/info.png\">\n",
215215
"\n",
216-
"An extensive documentation explains the functions in the Python standard library. For instance, follow [this link](https://docs.python.org/3.6/library/functions.html?#type) to learn more about the `type()` function. "
216+
"An extensive documentation explains the functions in the Python standard library. For instance, follow [this link](https://docs.python.org/3.9/library/functions.html?#type) to learn more about the `type()` function. "
217217
]
218218
},
219219
{
@@ -562,7 +562,7 @@
562562
"source": [
563563
"<img align=\"left\" width=\"6%\" style=\"padding-right:10px;\" src=\"images/info.png\">\n",
564564
"\n",
565-
"You can read more about operator precedence in the official [Python documentation](https://docs.python.org/3.6/reference/expressions.html#operator-precedence)."
565+
"You can read more about operator precedence in the official [Python documentation](https://docs.python.org/3.9/reference/expressions.html#operator-precedence)."
566566
]
567567
},
568568
{

003_Conditional_Execution.ipynb

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"source": [
9797
"<img align=\"left\" width=\"6%\" style=\"padding-right:10px;\" src=\"images/key.png\">\n",
9898
"\n",
99-
"A boolean expression usually has (at least) one **[relational operators](https://docs.python.org/3.6/reference/expressions.html?#value-comparisons)** that verifies a relation between two variables."
99+
"A boolean expression usually has (at least) one **[relational operators](https://docs.python.org/3.9/reference/expressions.html?#value-comparisons)** that verifies a relation between two variables."
100100
]
101101
},
102102
{
@@ -194,7 +194,7 @@
194194
"source": [
195195
"<img align=\"left\" width=\"6%\" style=\"padding-right:10px;\" src=\"images/key.png\">\n",
196196
"\n",
197-
"It is possible to combine pairs of boolean expressions (**operands**) into a single one using **[logical operators](https://docs.python.org/3.6/reference/expressions.html?#boolean-operations)** such as `and` and `or`. "
197+
"It is possible to combine pairs of boolean expressions (**operands**) into a single one using **[logical operators](https://docs.python.org/3.9/reference/expressions.html?#boolean-operations)** such as `and` and `or`. "
198198
]
199199
},
200200
{
@@ -230,7 +230,7 @@
230230
"source": [
231231
"<img align=\"left\" width=\"6%\" style=\"padding-right:10px;\" src=\"images/info.png\">\n",
232232
"\n",
233-
"When a statement contains multiple operators, Python follows a well-defined [order of precedence](https://docs.python.org/3.6/reference/expressions.html#operator-precedence)."
233+
"When a statement contains multiple operators, Python follows a well-defined [order of precedence](https://docs.python.org/3.9/reference/expressions.html#operator-precedence)."
234234
]
235235
},
236236
{
@@ -429,7 +429,7 @@
429429
"cell_type": "markdown",
430430
"metadata": {},
431431
"source": [
432-
"Conditional statements like [`if`](https://docs.python.org/3.6/reference/compound_stmts.html#the-if-statement), [`elif`](https://docs.python.org/3.6/reference/compound_stmts.html#the-if-statement), and [`else`](https://docs.python.org/3.6/reference/compound_stmts.html#the-if-statement) provide you with the ability to check whether specific conditions apply and change the behavior of your program accordingly."
432+
"Conditional statements like [`if`](https://docs.python.org/3.9/reference/compound_stmts.html#the-if-statement), [`elif`](https://docs.python.org/3.9/reference/compound_stmts.html#the-if-statement), and [`else`](https://docs.python.org/3.9/reference/compound_stmts.html#the-if-statement) provide you with the ability to check whether specific conditions apply and change the behavior of your program accordingly."
433433
]
434434
},
435435
{
@@ -480,7 +480,7 @@
480480
"source": [
481481
"<img align=\"left\" width=\"6%\" style=\"padding-right:10px;\" src=\"images/key.png\">\n",
482482
"\n",
483-
"Proper [indentation](https://docs.python.org/3.6/reference/lexical_analysis.html#indentation) is a key requirement in Python."
483+
"Proper [indentation](https://docs.python.org/3.9/reference/lexical_analysis.html#indentation) is a key requirement in Python."
484484
]
485485
},
486486
{
@@ -789,13 +789,13 @@
789789
"cell_type": "markdown",
790790
"metadata": {},
791791
"source": [
792-
"* [The official Python 3.6 documentation](https://docs.python.org/3.6/index.html)\n",
793-
" * [The bool type](https://docs.python.org/3.6/library/functions.html?#bool)\n",
794-
" * [Indentation](https://docs.python.org/3.6/reference/lexical_analysis.html#indentation)\n",
795-
" * [Relational Operators](https://docs.python.org/3.6/reference/expressions.html?#value-comparisons)\n",
796-
" * [Logical Operators](https://docs.python.org/3.6/reference/expressions.html?#boolean-operations)\n",
797-
" * [Order of Precedence for Operators](https://docs.python.org/3.6/reference/expressions.html#operator-precedence)\n",
798-
" * [The `if` statement](https://docs.python.org/3.6/reference/compound_stmts.html#the-if-statement)\n",
792+
"* [The official Python 3.9 documentation](https://docs.python.org/3.9/index.html)\n",
793+
" * [The bool type](https://docs.python.org/3.9/library/functions.html?#bool)\n",
794+
" * [Indentation](https://docs.python.org/3.9/reference/lexical_analysis.html#indentation)\n",
795+
" * [Relational Operators](https://docs.python.org/3.9/reference/expressions.html?#value-comparisons)\n",
796+
" * [Logical Operators](https://docs.python.org/3.9/reference/expressions.html?#boolean-operations)\n",
797+
" * [Order of Precedence for Operators](https://docs.python.org/3.9/reference/expressions.html#operator-precedence)\n",
798+
" * [The `if` statement](https://docs.python.org/3.9/reference/compound_stmts.html#the-if-statement)\n",
799799
"* [Sediment Grain Size](https://en.wikipedia.org/wiki/Grain_size)"
800800
]
801801
},
@@ -833,7 +833,7 @@
833833
"name": "python",
834834
"nbconvert_exporter": "python",
835835
"pygments_lexer": "ipython3",
836-
"version": "3.6.7"
836+
"version": "3.9.7"
837837
}
838838
},
839839
"nbformat": 4,

004_Loops.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,8 @@
480480
"cell_type": "markdown",
481481
"metadata": {},
482482
"source": [
483-
"* [The official Python 3.6 documentation](https://docs.python.org/3.6/index.html)\n",
484-
" * [Lists](https://docs.python.org/3.6/library/stdtypes.html?highlight=list#lists)\n",
483+
"* [The official Python 3.9 documentation](https://docs.python.org/3.9/index.html)\n",
484+
" * [Lists](https://docs.python.org/3.9/library/stdtypes.html?highlight=list#lists)\n",
485485
"* [The Python Wiki](https://wiki.python.org/moin/FrontPage)\n",
486486
" * [For loops](https://wiki.python.org/moin/ForLoop)\n",
487487
" * [While loops](https://wiki.python.org/moin/WhileLoop)"
@@ -521,7 +521,7 @@
521521
"name": "python",
522522
"nbconvert_exporter": "python",
523523
"pygments_lexer": "ipython3",
524-
"version": "3.6.7"
524+
"version": "3.9.7"
525525
}
526526
},
527527
"nbformat": 4,

005_Write_Your_Own_Functions.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"cell_type": "markdown",
2020
"metadata": {},
2121
"source": [
22-
"We have met (and used) several of the many [built-in functions](https://docs.python.org/3.6/library/functions.html) that are shipped with Python: [`print()`](000_Welcome_on_Board.ipynb#What-is-a-Code-cell?), [`type()`](001_Variables_and_Types.ipynb#Dynamic-Nature-of-a-Variable-Type), [`len()`](002_Lists_of_Variables.ipynb#Creation-of-a-List:-Approach-#1), [`dir()`](002_Lists_of_Variables.ipynb#List's-Methods)."
22+
"We have met (and used) several of the many [built-in functions](https://docs.python.org/3.9/library/functions.html) that are shipped with Python: [`print()`](000_Welcome_on_Board.ipynb#What-is-a-Code-cell?), [`type()`](001_Variables_and_Types.ipynb#Dynamic-Nature-of-a-Variable-Type), [`len()`](002_Lists_of_Variables.ipynb#Creation-of-a-List:-Approach-#1), [`dir()`](002_Lists_of_Variables.ipynb#List's-Methods)."
2323
]
2424
},
2525
{
@@ -421,7 +421,7 @@
421421
"cell_type": "markdown",
422422
"metadata": {},
423423
"source": [
424-
"By default, a function provides back (**returns**) a special Python object: [`None`](https://docs.python.org/3.6/c-api/none.html?highlight=none#the-none-object)."
424+
"By default, a function provides back (**returns**) a special Python object: [`None`](https://docs.python.org/3.9/c-api/none.html?highlight=none#the-none-object)."
425425
]
426426
},
427427
{
@@ -717,9 +717,9 @@
717717
"cell_type": "markdown",
718718
"metadata": {},
719719
"source": [
720-
"* [The official Python 3.6 documentation](https://docs.python.org/3.6/index.html)\n",
721-
" * [Built-in functions](https://docs.python.org/3.6/library/functions.html)\n",
722-
" * [None](https://docs.python.org/3.6/c-api/none.html?highlight=none#the-none-object)\n",
720+
"* [The official Python 3.9 documentation](https://docs.python.org/3.9/index.html)\n",
721+
" * [Built-in functions](https://docs.python.org/3.9/library/functions.html)\n",
722+
" * [None](https://docs.python.org/3.9/c-api/none.html?highlight=none#the-none-object)\n",
723723
"* [Flattening](https://en.wikipedia.org/wiki/Flattening)"
724724
]
725725
},
@@ -757,7 +757,7 @@
757757
"name": "python",
758758
"nbconvert_exporter": "python",
759759
"pygments_lexer": "ipython3",
760-
"version": "3.6.7"
760+
"version": "3.9.7"
761761
}
762762
},
763763
"nbformat": 4,

006_Read_and_Write_Text_Files.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"cell_type": "markdown",
7070
"metadata": {},
7171
"source": [
72-
"We will first introduce some file management capabilities of the `os.path` [Python module](https://docs.python.org/3.6/tutorial/modules.html#modules), then we will use the functions that Python provides for [reading and writing the content of a text file](https://docs.python.org/3.6/tutorial/inputoutput.html)."
72+
"We will first introduce some file management capabilities of the `os.path` [Python module](https://docs.python.org/3.9/tutorial/modules.html#modules), then we will use the functions that Python provides for [reading and writing the content of a text file](https://docs.python.org/3.9/tutorial/inputoutput.html)."
7373
]
7474
},
7575
{
@@ -193,7 +193,7 @@
193193
"cell_type": "markdown",
194194
"metadata": {},
195195
"source": [
196-
"In case that the `data` sub-folder does not exist, we raise an error using the [`raise`](https://docs.python.org/3.6/tutorial/errors.html#raising-exceptions) keyword."
196+
"In case that the `data` sub-folder does not exist, we raise an error using the [`raise`](https://docs.python.org/3.9/tutorial/errors.html#raising-exceptions) keyword."
197197
]
198198
},
199199
{
@@ -235,7 +235,7 @@
235235
"source": [
236236
"<img align=\"left\" width=\"6%\" style=\"padding-right:10px;\" src=\"images/info.png\">\n",
237237
"\n",
238-
"If you want to know more about error handing and exceptions, read [Errors and Exceptions](https://docs.python.org/3.6/tutorial/errors.html)."
238+
"If you want to know more about error handing and exceptions, read [Errors and Exceptions](https://docs.python.org/3.9/tutorial/errors.html)."
239239
]
240240
},
241241
{
@@ -291,7 +291,7 @@
291291
"source": [
292292
"<img align=\"left\" width=\"6%\" style=\"padding-right:10px;\" src=\"images/key.png\">\n",
293293
"\n",
294-
"You do not need to remember all the names of the available Python functions, but you need to learn how to search for them. The [official Python documentation](https://docs.python.org/3.6/index.html) is a good place to start. You can also get a list of the functions in the `os.path` module by entering `dir(os.path)` in a code cell."
294+
"You do not need to remember all the names of the available Python functions, but you need to learn how to search for them. The [official Python documentation](https://docs.python.org/3.9/index.html) is a good place to start. You can also get a list of the functions in the `os.path` module by entering `dir(os.path)` in a code cell."
295295
]
296296
},
297297
{
@@ -349,7 +349,7 @@
349349
"source": [
350350
"<img align=\"left\" width=\"6%\" style=\"padding-right:10px;\" src=\"images/key.png\">\n",
351351
"\n",
352-
"The Python `open()` function takes the name of the file (as a parameter) and returns a [file object](https://docs.python.org/3.6/glossary.html#term-file-object). <br> The `close()` function closes the open file."
352+
"The Python `open()` function takes the name of the file (as a parameter) and returns a [file object](https://docs.python.org/3.9/glossary.html#term-file-object). <br> The `close()` function closes the open file."
353353
]
354354
},
355355
{

007_Dictionaries_and_Metadata.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
"source": [
148148
"<img align=\"left\" width=\"6%\" style=\"padding-right:10px;\" src=\"images/info.png\">\n",
149149
"\n",
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)."
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.9/library/collections.html?highlight=ordereddict#ordereddict-objects)."
151151
]
152152
},
153153
{
@@ -240,7 +240,7 @@
240240
"source": [
241241
"<img align=\"left\" width=\"6%\" style=\"padding-right:10px;\" src=\"images/info.png\">\n",
242242
"\n",
243-
"In the table above, the *\"(almost) any type\"* for `dict` indexing is because the type must be [hashable](https://docs.python.org/3.6/glossary.html). For now you do not have to worry what this means as it is outside the scope of this notebook. If, however, you want to learn about the hash function go [here](https://en.wikipedia.org/wiki/Hash_function)."
243+
"In the table above, the *\"(almost) any type\"* for `dict` indexing is because the type must be [hashable](https://docs.python.org/3.9/glossary.html). For now you do not have to worry what this means as it is outside the scope of this notebook. If, however, you want to learn about the hash function go [here](https://en.wikipedia.org/wiki/Hash_function)."
244244
]
245245
},
246246
{
@@ -327,7 +327,7 @@
327327
"cell_type": "markdown",
328328
"metadata": {},
329329
"source": [
330-
"This is the first time that we use the [`datetime`](https://docs.python.org/3.6/library/datetime.html?#module-datetime) type."
330+
"This is the first time that we use the [`datetime`](https://docs.python.org/3.9/library/datetime.html?#module-datetime) type."
331331
]
332332
},
333333
{

008_A_Class_as_a_Data_Container.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,8 @@
372372
"cell_type": "markdown",
373373
"metadata": {},
374374
"source": [
375-
"* [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)\n",
375+
"* [The official Python 3.9 documentation](https://docs.python.org/3.9/index.html)\n",
376+
" * [Classes](https://docs.python.org/3.9/tutorial/classes.html)\n",
377377
"* [Foundations of Ocean Data Science](https://www.hydroffice.org/manuals/epom/foundations_of_ocean_data_science.html)"
378378
]
379379
},
@@ -411,7 +411,7 @@
411411
"name": "python",
412412
"nbconvert_exporter": "python",
413413
"pygments_lexer": "ipython3",
414-
"version": "3.6.7"
414+
"version": "3.9.7"
415415
}
416416
},
417417
"nbformat": 4,

009_Summing-Up.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
"cell_type": "markdown",
191191
"metadata": {},
192192
"source": [
193-
"In the above code we use the [`str.split()`](https://docs.python.org/3.6/library/stdtypes.html?#str.split) method. \n",
193+
"In the above code we use the [`str.split()`](https://docs.python.org/3.9/library/stdtypes.html?#str.split) method. \n",
194194
"\n",
195195
"This method returns a list of the words in a string by splitting it using a delimiter (e.g., `\":\"`) passed as a parameter. "
196196
]
@@ -256,7 +256,7 @@
256256
"source": [
257257
"The data are now **loaded in memory**. \n",
258258
"\n",
259-
"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",
259+
"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.9/library/stdtypes.html?#range) type.\n",
260260
"\n",
261261
"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
]
@@ -317,7 +317,7 @@
317317
"cell_type": "markdown",
318318
"metadata": {},
319319
"source": [
320-
"* [The official Python 3.6 documentation](https://docs.python.org/3.6/index.html)\n",
320+
"* [The official Python 3.9 documentation](https://docs.python.org/3.9/index.html)\n",
321321
"* [CTD instrument](https://en.wikipedia.org/wiki/CTD_(instrument))"
322322
]
323323
},
@@ -355,7 +355,7 @@
355355
"name": "python",
356356
"nbconvert_exporter": "python",
357357
"pygments_lexer": "ipython3",
358-
"version": "3.6.7"
358+
"version": "3.9.7"
359359
}
360360
},
361361
"nbformat": 4,

SUP_Python_is_Dynamically_and_Strongly_Typed.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
"name": "python",
155155
"nbconvert_exporter": "python",
156156
"pygments_lexer": "ipython3",
157-
"version": "3.6.7"
157+
"version": "3.9.7"
158158
}
159159
},
160160
"nbformat": 4,

congrats.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"name": "python",
8282
"nbconvert_exporter": "python",
8383
"pygments_lexer": "ipython3",
84-
"version": "3.6.7"
84+
"version": "3.9.7"
8585
}
8686
},
8787
"nbformat": 4,

0 commit comments

Comments
 (0)