diff --git a/_solved/python_intro/00-jupyterlab.ipynb b/_solved/python_intro/00-jupyterlab.ipynb index 03c9a25..b3500ba 100644 --- a/_solved/python_intro/00-jupyterlab.ipynb +++ b/_solved/python_intro/00-jupyterlab.ipynb @@ -271,12 +271,22 @@ ] }, { - "cell_type": "markdown", + "cell_type": "code", + "execution_count": 1, "metadata": { "tags": [ "nbtutor-solution" ] }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "54\n" + ] + } + ], "source": [ "x = 6 * 7 + 12\n", "print(x)" diff --git a/_solved/python_intro/02-functions-use.ipynb b/_solved/python_intro/02-functions-use.ipynb index 8f24fe2..8a76989 100644 --- a/_solved/python_intro/02-functions-use.ipynb +++ b/_solved/python_intro/02-functions-use.ipynb @@ -899,7 +899,8 @@ ] }, { - "cell_type": "markdown", + "cell_type": "code", + "execution_count": 2, "metadata": { "editable": true, "slideshow": { @@ -909,8 +910,26 @@ "nbtutor-solution" ] }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "Order of operations:\n", + "- 1.1 * radiance = 1.1\n", + "- 1.1 - 0.5 = 0.6\n", + "- min(radiance, 0.6) = 0.6\n", + "- 2.0 + 0.6 = 2.6\n", + "- max(2.1, 2.6) = 2.6\n", + "\n", + "At the end, result = 2.6\n", + "\n" + ] + } + ], "source": [ - "```\n", + "print(\"\"\"\n", "Order of operations:\n", "- 1.1 * radiance = 1.1\n", "- 1.1 - 0.5 = 0.6\n", @@ -919,7 +938,7 @@ "- max(2.1, 2.6) = 2.6\n", "\n", "At the end, result = 2.6\n", - "```" + "\"\"\")" ] }, { diff --git a/notebooks/python_intro/00-jupyterlab.ipynb b/notebooks/python_intro/00-jupyterlab.ipynb index 0c34453..fdf3649 100644 --- a/notebooks/python_intro/00-jupyterlab.ipynb +++ b/notebooks/python_intro/00-jupyterlab.ipynb @@ -329,7 +329,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.8" + "version": "3.8.16" }, "nav_menu": {}, "toc": { diff --git a/notebooks/python_intro/02-functions-use.ipynb b/notebooks/python_intro/02-functions-use.ipynb index 82bddce..8add714 100644 --- a/notebooks/python_intro/02-functions-use.ipynb +++ b/notebooks/python_intro/02-functions-use.ipynb @@ -695,7 +695,8 @@ ] }, { - "cell_type": "markdown", + "cell_type": "code", + "execution_count": null, "metadata": { "editable": true, "slideshow": { diff --git a/notebooks/python_intro/_solutions/02-functions-use6.py b/notebooks/python_intro/_solutions/02-functions-use6.py index 63e38e6..5dfa70c 100644 --- a/notebooks/python_intro/_solutions/02-functions-use6.py +++ b/notebooks/python_intro/_solutions/02-functions-use6.py @@ -1,4 +1,4 @@ -``` +print(""" Order of operations: - 1.1 * radiance = 1.1 - 1.1 - 0.5 = 0.6 @@ -7,4 +7,4 @@ - max(2.1, 2.6) = 2.6 At the end, result = 2.6 -``` \ No newline at end of file +""") \ No newline at end of file