diff --git a/pythonintro/DataTypes.ipynb b/pythonintro/DataTypes.ipynb index 00eb728db4ecaebafb9078d39ae6af038f405c3f..5b8848f55ae92b1589a339f86af5f6006c1d6d58 100644 --- a/pythonintro/DataTypes.ipynb +++ b/pythonintro/DataTypes.ipynb @@ -674,7 +674,7 @@ "provenance": [] }, "kernelspec": { - "display_name": "pythonintro-NlsZwE_T-py3.10", + "display_name": "pythonintro-zVi-LRuq-py3.12", "language": "python", "name": "python3" }, @@ -688,12 +688,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" - }, - "vscode": { - "interpreter": { - "hash": "e79a103ddccd343bb7d1be701b671c098efc420295b660c764763b93be962cdf" - } + "version": "3.12.3" } }, "nbformat": 4, diff --git a/pythonintro/Exceptions.ipynb b/pythonintro/Exceptions.ipynb index ca45f13406ae8a7c24c70eb5b9bf2d69d21ea9b4..6838577548a163f6738adb65c0c2ab8cd58863f3 100644 --- a/pythonintro/Exceptions.ipynb +++ b/pythonintro/Exceptions.ipynb @@ -24,10 +24,10 @@ "evalue": "division by zero", "output_type": "error", "traceback": [ - "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", - "\u001b[0;31mZeroDivisionError\u001b[0m Traceback (most recent call last)", - "Cell \u001b[0;32mIn [1], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[38;5;28mprint\u001b[39m(\u001b[38;5;241;43m1\u001b[39;49m\u001b[38;5;241;43m/\u001b[39;49m\u001b[38;5;241;43m0\u001b[39;49m)\n", - "\u001b[0;31mZeroDivisionError\u001b[0m: division by zero" + "\u001b[31m---------------------------------------------------------------------------\u001b[39m", + "\u001b[31mZeroDivisionError\u001b[39m Traceback (most recent call last)", + "\u001b[36mCell\u001b[39m\u001b[36m \u001b[39m\u001b[32mIn[1]\u001b[39m\u001b[32m, line 1\u001b[39m\n\u001b[32m----> \u001b[39m\u001b[32m1\u001b[39m \u001b[38;5;28mprint\u001b[39m(\u001b[32;43m1\u001b[39;49m\u001b[43m/\u001b[49m\u001b[32;43m0\u001b[39;49m)\n", + "\u001b[31mZeroDivisionError\u001b[39m: division by zero" ] } ], @@ -344,7 +344,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3.10.6 ('pythonintro-A08DqnGu-py3.10')", + "display_name": "pythonintro-zVi-LRuq-py3.12", "language": "python", "name": "python3" }, @@ -358,14 +358,9 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.3" }, - "orig_nbformat": 4, - "vscode": { - "interpreter": { - "hash": "eb3a944512c48027e49906d9e47d21cfb9b2c1ddd33f9b79c72df4b5e3a553dc" - } - } + "orig_nbformat": 4 }, "nbformat": 4, "nbformat_minor": 2 diff --git a/pythonintro/FirstSteps.ipynb b/pythonintro/FirstSteps.ipynb index c26820fdbaf4bc5326620deae03806c2fa45ed2d..73c7a61cf54feeac65612edffb5d7be8efd213c9 100644 --- a/pythonintro/FirstSteps.ipynb +++ b/pythonintro/FirstSteps.ipynb @@ -493,7 +493,7 @@ ], "metadata": { "kernelspec": { - "display_name": "pythonintro-zVi-LRuq-py3.11", + "display_name": "pythonintro-zVi-LRuq-py3.12", "language": "python", "name": "python3" }, @@ -507,7 +507,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.11" + "version": "3.12.3" }, "orig_nbformat": 4 }, diff --git a/pythonintro/FlowControl.ipynb b/pythonintro/FlowControl.ipynb index be1677e95e24020d33795368a719ef35032759ed..4d15162f727dcc1af4ee410313a7d9123df1ffe7 100644 --- a/pythonintro/FlowControl.ipynb +++ b/pythonintro/FlowControl.ipynb @@ -489,7 +489,7 @@ ], "metadata": { "kernelspec": { - "display_name": "pythonintro-NlsZwE_T-py3.10", + "display_name": "pythonintro-zVi-LRuq-py3.12", "language": "python", "name": "python3" }, @@ -503,14 +503,9 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.3" }, - "orig_nbformat": 4, - "vscode": { - "interpreter": { - "hash": "e79a103ddccd343bb7d1be701b671c098efc420295b660c764763b93be962cdf" - } - } + "orig_nbformat": 4 }, "nbformat": 4, "nbformat_minor": 2 diff --git a/pythonintro/Functions.ipynb b/pythonintro/Functions.ipynb index b3a0df79775dc0ded6f21557692713274a21437e..5661c71fa60a949bb87024d3e0aee66780d71aac 100644 --- a/pythonintro/Functions.ipynb +++ b/pythonintro/Functions.ipynb @@ -541,7 +541,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3.10.6 ('pythonintro-NlsZwE_T-py3.10')", + "display_name": "pythonintro-zVi-LRuq-py3.12", "language": "python", "name": "python3" }, @@ -555,14 +555,9 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.3" }, - "orig_nbformat": 4, - "vscode": { - "interpreter": { - "hash": "e79a103ddccd343bb7d1be701b671c098efc420295b660c764763b93be962cdf" - } - } + "orig_nbformat": 4 }, "nbformat": 4, "nbformat_minor": 2 diff --git a/pythonintro/PandasIntro.ipynb b/pythonintro/PandasIntro.ipynb index 823d82bcb6be746842a1bf37501e1c6dc7326bc0..28cfe37b99817b3fe52be6134cedff3ad4d6138e 100644 --- a/pythonintro/PandasIntro.ipynb +++ b/pythonintro/PandasIntro.ipynb @@ -386,7 +386,7 @@ ], "metadata": { "kernelspec": { - "display_name": "pythonintro-zVi-LRuq-py3.11", + "display_name": "pythonintro-zVi-LRuq-py3.12", "language": "python", "name": "python3" }, @@ -400,7 +400,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.11" + "version": "3.12.3" }, "orig_nbformat": 4 }, diff --git a/pythonintro/solutions/Solutions_Functions.ipynb b/pythonintro/solutions/Solutions_Functions.ipynb index 6cf074c378530dd309c48a783367feddaecb3c2f..0bff01b9423b127b95310a9ac175f611668e5f95 100644 --- a/pythonintro/solutions/Solutions_Functions.ipynb +++ b/pythonintro/solutions/Solutions_Functions.ipynb @@ -48,7 +48,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 3, "metadata": {}, "outputs": [ { @@ -57,14 +57,14 @@ "text": [ "Next Fibonacci number 0\n", "Next Fibonacci number 1\n", + "Next Fibonacci number 1\n", "Next Fibonacci number 2\n", "Next Fibonacci number 3\n", "Next Fibonacci number 5\n", "Next Fibonacci number 8\n", "Next Fibonacci number 13\n", "Next Fibonacci number 21\n", - "Next Fibonacci number 34\n", - "Next Fibonacci number 55\n" + "Next Fibonacci number 34\n" ] } ], @@ -79,9 +79,9 @@ " fib = 0\n", " while True:\n", " yield fib\n", - " fib = y + x\n", " x = y\n", - " y = fib \n", + " y = fib \n", + " fib = y + x \n", " \n", "\n", "my_generator = fibonacci()\n", @@ -151,7 +151,7 @@ ], "metadata": { "kernelspec": { - "display_name": "pythonintro-zVi-LRuq-py3.11", + "display_name": "pythonintro-zVi-LRuq-py3.12", "language": "python", "name": "python3" }, @@ -165,7 +165,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.11" + "version": "3.12.3" }, "orig_nbformat": 4 },