diff --git a/sum23/lecture_materials/03_Using_Functions/lec_03_Using_Functions_solutions.ipynb b/sum23/lecture_materials/03_Using_Functions/lec_03_Using_Functions_solutions.ipynb index 38b1817a857f59d5c5c4b061509817c0f557752f..511e2084fb87a641df4df035c43fe0bc5d359cea 100644 --- a/sum23/lecture_materials/03_Using_Functions/lec_03_Using_Functions_solutions.ipynb +++ b/sum23/lecture_materials/03_Using_Functions/lec_03_Using_Functions_solutions.ipynb @@ -33,9 +33,19 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "False\n", + "True\n", + "True\n" + ] + } + ], "source": [ "print(7+3 == 9 and 4/0 == 0) # False\n", "print(7 + 3 == 10 or 4/0 == 0) # True\n", @@ -777,7 +787,7 @@ }, { "cell_type": "code", - "execution_count": 59, + "execution_count": 2, "metadata": {}, "outputs": [ { @@ -787,7 +797,7 @@ "traceback": [ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)", - "Cell \u001b[0;32mIn[59], line 2\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[38;5;66;03m# Let's try to find square root of 10\u001b[39;00m\n\u001b[0;32m----> 2\u001b[0m \u001b[43msqrt\u001b[49m(\u001b[38;5;241m10\u001b[39m) \u001b[38;5;66;03m# doesn't work because it is part of math module\u001b[39;00m\n", + "Cell \u001b[0;32mIn[2], line 2\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[38;5;66;03m# Let's try to find square root of 10\u001b[39;00m\n\u001b[0;32m----> 2\u001b[0m \u001b[43msqrt\u001b[49m(\u001b[38;5;241m10\u001b[39m) \u001b[38;5;66;03m# doesn't work because it is part of math module\u001b[39;00m\n", "\u001b[0;31mNameError\u001b[0m: name 'sqrt' is not defined" ] } @@ -806,7 +816,7 @@ }, { "cell_type": "code", - "execution_count": 60, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [