Skip to content

Commit ebce418

Browse files
committed
updated python version
1 parent de55788 commit ebce418

15 files changed

+75
-75
lines changed

000_Welcome_on_Board.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@
803803
"name": "python",
804804
"nbconvert_exporter": "python",
805805
"pygments_lexer": "ipython3",
806-
"version": "3.6.7"
806+
"version": "3.9.7"
807807
}
808808
},
809809
"nbformat": 4,

001_Variables_and_Types.ipynb

Lines changed: 8 additions & 8 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
{
@@ -857,7 +857,7 @@
857857
"source": [
858858
"<img align=\"left\" width=\"6%\" style=\"padding-right:10px;\" src=\"images/test.png\">\n",
859859
"\n",
860-
"Create a `cur_year` variable of type `int`. Use `cur_year` to create a string variable, then display: `The current year is 2019`."
860+
"Create a `cur_year` variable of type `int`. Use `cur_year` to create a string variable, then display: `The current year is 2022`."
861861
]
862862
},
863863
{
@@ -868,7 +868,7 @@
868868
},
869869
"outputs": [],
870870
"source": [
871-
"cur_year = 2019\n",
871+
"cur_year = 2022\n",
872872
"cur_year_str = \"The current year is \" + str(cur_year)\n",
873873
"print(cur_year_str)"
874874
]
@@ -1019,9 +1019,9 @@
10191019
"cell_type": "markdown",
10201020
"metadata": {},
10211021
"source": [
1022-
"* [The official Python 3.6 documentation](https://docs.python.org/3.6/index.html)\n",
1023-
" * [Python Built-in Types](https://docs.python.org/3.6/library/stdtypes.html)\n",
1024-
" * [Order of Precedence for Operators](https://docs.python.org/3.6/reference/expressions.html#operator-precedence)\n",
1022+
"* [The official Python 3.9 documentation](https://docs.python.org/3.9/index.html)\n",
1023+
" * [Python Built-in Types](https://docs.python.org/3.9/library/stdtypes.html)\n",
1024+
" * [Order of Precedence for Operators](https://docs.python.org/3.9/reference/expressions.html#operator-precedence)\n",
10251025
"* [Euclidean division](https://en.wikipedia.org/wiki/Euclidean_division)\n",
10261026
"* [PEMDAS mathematical convention](https://en.wikipedia.org/wiki/Order_of_operations)"
10271027
]
@@ -1060,7 +1060,7 @@
10601060
"name": "python",
10611061
"nbconvert_exporter": "python",
10621062
"pygments_lexer": "ipython3",
1063-
"version": "3.6.7"
1063+
"version": "3.9.7"
10641064
}
10651065
},
10661066
"nbformat": 4,

002_Lists_of_Variables.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@
607607
"source": [
608608
"<img align=\"left\" width=\"6%\" style=\"padding-right:10px;\" src=\"images/key.png\">\n",
609609
"\n",
610-
"The [`dir()`](https://docs.python.org/3.6/library/functions.html#dir) function can be used to explore the methods available for a variable."
610+
"The [`dir()`](https://docs.python.org/3.9/library/functions.html#dir) function can be used to explore the methods available for a variable."
611611
]
612612
},
613613
{
@@ -764,8 +764,8 @@
764764
"source": [
765765
"<img align=\"left\" width=\"6%\" style=\"padding-right:10px;\" src=\"images/info.png\">\n",
766766
"\n",
767-
"A `list` implements all of the so-called [*common*](https://docs.python.org/3.6/library/stdtypes.html?#typesseq-common) and [*mutable sequence operations*](https://docs.python.org/3.6/library/stdtypes.html?#mutable-sequence-types).\n",
768-
"If you are curious to know more about the methods available for a `list`, look at this [section](https://docs.python.org/3.6/library/stdtypes.html?highlight=list#lists) of the official Python documentation."
767+
"A `list` implements all of the so-called [*common*](https://docs.python.org/3.9/library/stdtypes.html?#typesseq-common) and [*mutable sequence operations*](https://docs.python.org/3.9/library/stdtypes.html?#mutable-sequence-types).\n",
768+
"If you are curious to know more about the methods available for a `list`, look at this [section](https://docs.python.org/3.9/library/stdtypes.html?highlight=list#lists) of the official Python documentation."
769769
]
770770
},
771771
{
@@ -788,10 +788,10 @@
788788
"cell_type": "markdown",
789789
"metadata": {},
790790
"source": [
791-
"* [The official Python 3.6 documentation](https://docs.python.org/3.6/index.html)\n",
792-
" * [Common Sequence Operations](https://docs.python.org/3.6/library/stdtypes.html?#typesseq-common)\n",
793-
" * [Mutable Sequence Operations](https://docs.python.org/3.6/library/stdtypes.html?#mutable-sequence-types)\n",
794-
" * [Lists](https://docs.python.org/3.6/library/stdtypes.html?highlight=list#lists)\n",
791+
"* [The official Python 3.9 documentation](https://docs.python.org/3.9/index.html)\n",
792+
" * [Common Sequence Operations](https://docs.python.org/3.9/library/stdtypes.html?#typesseq-common)\n",
793+
" * [Mutable Sequence Operations](https://docs.python.org/3.9/library/stdtypes.html?#mutable-sequence-types)\n",
794+
" * [Lists](https://docs.python.org/3.9/library/stdtypes.html?highlight=list#lists)\n",
795795
"* [Zero-based numbering](https://en.wikipedia.org/wiki/Zero-based_numbering)"
796796
]
797797
},
@@ -829,7 +829,7 @@
829829
"name": "python",
830830
"nbconvert_exporter": "python",
831831
"pygments_lexer": "ipython3",
832-
"version": "3.6.7"
832+
"version": "3.9.7"
833833
}
834834
},
835835
"nbformat": 4,

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: 10 additions & 10 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
{
@@ -620,7 +620,7 @@
620620
"source": [
621621
"<img align=\"left\" width=\"6%\" style=\"padding-right:10px;\" src=\"images/info.png\">\n",
622622
"\n",
623-
"You may learn about other modes for opening a file from the official [Python documentation](https://docs.python.org/3.6/library/functions.html?#open)."
623+
"You may learn about other modes for opening a file from the official [Python documentation](https://docs.python.org/3.9/library/functions.html?#open)."
624624
]
625625
},
626626
{
@@ -737,9 +737,9 @@
737737
"cell_type": "markdown",
738738
"metadata": {},
739739
"source": [
740-
"* [The official Python 3.6 documentation](https://docs.python.org/3.6/index.html)\n",
741-
" * [The os module](https://docs.python.org/3.6/library/os.html)\n",
742-
" * [Input and Output](https://docs.python.org/3.6/tutorial/inputoutput.html)\n",
740+
"* [The official Python 3.9 documentation](https://docs.python.org/3.9/index.html)\n",
741+
" * [The os module](https://docs.python.org/3.9/library/os.html)\n",
742+
" * [Input and Output](https://docs.python.org/3.9/tutorial/inputoutput.html)\n",
743743
"* [Cross-platform software](https://en.wikipedia.org/wiki/Cross-platform_software)\n",
744744
"* [Computer file](https://en.wikipedia.org/wiki/Computer_file)\n",
745745
" * [Text file](https://en.wikipedia.org/wiki/Text_file)\n",
@@ -782,7 +782,7 @@
782782
"name": "python",
783783
"nbconvert_exporter": "python",
784784
"pygments_lexer": "ipython3",
785-
"version": "3.6.7"
785+
"version": "3.9.7"
786786
}
787787
},
788788
"nbformat": 4,

0 commit comments

Comments
 (0)