From 68bf92b8237d986e824fbfc02e04b13ce3250a77 Mon Sep 17 00:00:00 2001
From: Louis Oliphant <ltoliphant@wisc.edu>
Date: Mon, 9 Sep 2024 08:20:37 -0500
Subject: [PATCH] updated link in lec 3 readings

---
 .../03_Operators/Lec_03_Operators.ipynb       |   2 +-
 .../Lec_03_Operators_Solution.ipynb           | 254 +++---------------
 2 files changed, 35 insertions(+), 221 deletions(-)

diff --git a/f24/Louis_Lecture_Notes/03_Operators/Lec_03_Operators.ipynb b/f24/Louis_Lecture_Notes/03_Operators/Lec_03_Operators.ipynb
index 0a466c8..c2a9235 100644
--- a/f24/Louis_Lecture_Notes/03_Operators/Lec_03_Operators.ipynb
+++ b/f24/Louis_Lecture_Notes/03_Operators/Lec_03_Operators.ipynb
@@ -7,7 +7,7 @@
     "# Values, Data Types, and Expressions\n",
     "\n",
     "## Readings:\n",
-    "- [Chapter 1 of *Think Python*](https://greenteapress.com/thinkpython2/html/thinkpython2003.html)\n",
+    "- [Chapter 1 of *Think Python*](https://greenteapress.com/thinkpython2/html/thinkpython2002.html)\n",
     "- [Chapter 2 of *Python for Everybody*](https://runestone.academy/ns/books/published//py4e-int/variables/toctree.html)\n",
     "\n",
     "## Additional readings: \n",
diff --git a/f24/Louis_Lecture_Notes/03_Operators/Lec_03_Operators_Solution.ipynb b/f24/Louis_Lecture_Notes/03_Operators/Lec_03_Operators_Solution.ipynb
index 0511d95..c2a9235 100644
--- a/f24/Louis_Lecture_Notes/03_Operators/Lec_03_Operators_Solution.ipynb
+++ b/f24/Louis_Lecture_Notes/03_Operators/Lec_03_Operators_Solution.ipynb
@@ -7,7 +7,7 @@
     "# Values, Data Types, and Expressions\n",
     "\n",
     "## Readings:\n",
-    "- [Chapter 1 of *Think Python*](https://greenteapress.com/thinkpython2/html/thinkpython2003.html)\n",
+    "- [Chapter 1 of *Think Python*](https://greenteapress.com/thinkpython2/html/thinkpython2002.html)\n",
     "- [Chapter 2 of *Python for Everybody*](https://runestone.academy/ns/books/published//py4e-int/variables/toctree.html)\n",
     "\n",
     "## Additional readings: \n",
@@ -58,21 +58,9 @@
    "cell_type": "code",
    "execution_count": 1,
    "metadata": {},
-   "outputs": [
-    {
-     "data": {
-      "text/plain": [
-       "'Hello'"
-      ]
-     },
-     "execution_count": 1,
-     "metadata": {},
-     "output_type": "execute_result"
-    }
-   ],
+   "outputs": [],
    "source": [
-    "# TODO -- Enter your code here\n",
-    "\"Hello\""
+    "# TODO -- Enter your code here\n"
    ]
   },
   {
@@ -99,21 +87,9 @@
    "cell_type": "code",
    "execution_count": 2,
    "metadata": {},
-   "outputs": [
-    {
-     "data": {
-      "text/plain": [
-       "str"
-      ]
-     },
-     "execution_count": 2,
-     "metadata": {},
-     "output_type": "execute_result"
-    }
-   ],
+   "outputs": [],
    "source": [
-    "# TODO -- Enter your code here\n",
-    "type(\"Hello\")"
+    "# TODO -- Enter your code here\n"
    ]
   },
   {
@@ -158,19 +134,9 @@
    "cell_type": "code",
    "execution_count": 3,
    "metadata": {},
-   "outputs": [
-    {
-     "name": "stdout",
-     "output_type": "stream",
-     "text": [
-      "What does\tthis do\n",
-      "if I type it in.\n"
-     ]
-    }
-   ],
+   "outputs": [],
    "source": [
-    "#TODO -- Enter your code here\n",
-    "print(\"What does\\tthis do\\nif I type it in.\")"
+    "#TODO -- Enter your code here\n"
    ]
   },
   {
@@ -189,19 +155,9 @@
    "cell_type": "code",
    "execution_count": 4,
    "metadata": {},
-   "outputs": [
-    {
-     "name": "stdout",
-     "output_type": "stream",
-     "text": [
-      "Mary said, 'Hello John. How are you?'\n",
-      "John said, \"I am doing fine. Thank you for asking.\"\n"
-     ]
-    }
-   ],
+   "outputs": [],
    "source": [
-    "#TODO -- Enter your code here\n",
-    "print(\"Mary said, 'Hello John. How are you?'\\nJohn said, \\\"I am doing fine. Thank you for asking.\\\"\")"
+    "#TODO -- Enter your code here\n"
    ]
   },
   {
@@ -225,21 +181,9 @@
    "cell_type": "code",
    "execution_count": 5,
    "metadata": {},
-   "outputs": [
-    {
-     "data": {
-      "text/plain": [
-       "False"
-      ]
-     },
-     "execution_count": 5,
-     "metadata": {},
-     "output_type": "execute_result"
-    }
-   ],
+   "outputs": [],
    "source": [
-    "#TODO -- Enter your code here\n",
-    "not True or False"
+    "#TODO -- Enter your code here\n"
    ]
   },
   {
@@ -276,21 +220,9 @@
    "cell_type": "code",
    "execution_count": 6,
    "metadata": {},
-   "outputs": [
-    {
-     "data": {
-      "text/plain": [
-       "2.0"
-      ]
-     },
-     "execution_count": 6,
-     "metadata": {},
-     "output_type": "execute_result"
-    }
-   ],
+   "outputs": [],
    "source": [
-    "#TODO -- Enter your code here\n",
-    "5.0 // 2"
+    "#TODO -- Enter your code here\n"
    ]
   },
   {
@@ -312,21 +244,9 @@
    "cell_type": "code",
    "execution_count": 7,
    "metadata": {},
-   "outputs": [
-    {
-     "data": {
-      "text/plain": [
-       "0.09999999999999964"
-      ]
-     },
-     "execution_count": 7,
-     "metadata": {},
-     "output_type": "execute_result"
-    }
-   ],
+   "outputs": [],
    "source": [
-    "#TODO -- Enter your code here\n",
-    "6.1 % 3"
+    "#TODO -- Enter your code here\n"
    ]
   },
   {
@@ -362,29 +282,9 @@
    "cell_type": "code",
    "execution_count": 8,
    "metadata": {},
-   "outputs": [
-    {
-     "data": {
-      "text/plain": [
-       "3"
-      ]
-     },
-     "execution_count": 8,
-     "metadata": {},
-     "output_type": "execute_result"
-    }
-   ],
+   "outputs": [],
    "source": [
-    "#TODO -- Enter your code here\n",
-    "\n",
-    "# 1. -- the largest value of M%4 is 3\n",
-    "# 2. -- the smallest value of M%4 is 0\n",
-    "# 3. -- If M is even M%2 is 0, if odd 1\n",
-    "# 4. -- the digit in the ones-place\n",
-    "\n",
-    "# Using the expressions as shown in the cell above you can extract any single digit out of an integer.  First, use floor division to get the digit you want in the ones-place then mod by 10.\n",
-    "\n",
-    "(2376 // 100) % 10"
+    "#TODO -- Enter your code here\n"
    ]
   },
   {
@@ -409,21 +309,9 @@
    "cell_type": "code",
    "execution_count": 9,
    "metadata": {},
-   "outputs": [
-    {
-     "data": {
-      "text/plain": [
-       "7"
-      ]
-     },
-     "execution_count": 9,
-     "metadata": {},
-     "output_type": "execute_result"
-    }
-   ],
+   "outputs": [],
    "source": [
-    "#TODO -- Enter your code here\n",
-    "3^4"
+    "#TODO -- Enter your code here\n"
    ]
   },
   {
@@ -447,21 +335,9 @@
    "cell_type": "code",
    "execution_count": 10,
    "metadata": {},
-   "outputs": [
-    {
-     "data": {
-      "text/plain": [
-       "'XXXXXXXXXX'"
-      ]
-     },
-     "execution_count": 10,
-     "metadata": {},
-     "output_type": "execute_result"
-    }
-   ],
+   "outputs": [],
    "source": [
-    "#TODO -- Enter your code here\n",
-    "10 * 'X'"
+    "#TODO -- Enter your code here\n"
    ]
   },
   {
@@ -486,21 +362,9 @@
    "cell_type": "code",
    "execution_count": 11,
    "metadata": {},
-   "outputs": [
-    {
-     "data": {
-      "text/plain": [
-       "0"
-      ]
-     },
-     "execution_count": 11,
-     "metadata": {},
-     "output_type": "execute_result"
-    }
-   ],
+   "outputs": [],
    "source": [
-    "#TODO -- Enter your code here\n",
-    "False * 7"
+    "#TODO -- Enter your code here\n"
    ]
   },
   {
@@ -548,21 +412,9 @@
    "cell_type": "code",
    "execution_count": 12,
    "metadata": {},
-   "outputs": [
-    {
-     "data": {
-      "text/plain": [
-       "True"
-      ]
-     },
-     "execution_count": 12,
-     "metadata": {},
-     "output_type": "execute_result"
-    }
-   ],
+   "outputs": [],
    "source": [
-    "#TODO -- Enter your code here\n",
-    "type(2+3) == type(8)"
+    "#TODO -- Enter your code here\n"
    ]
   },
   {
@@ -623,21 +475,9 @@
    "cell_type": "code",
    "execution_count": 13,
    "metadata": {},
-   "outputs": [
-    {
-     "data": {
-      "text/plain": [
-       "False"
-      ]
-     },
-     "execution_count": 13,
-     "metadata": {},
-     "output_type": "execute_result"
-    }
-   ],
+   "outputs": [],
    "source": [
-    "#TODO -- Enter your code here\n",
-    "not (True or True)"
+    "#TODO -- Enter your code here\n"
    ]
   },
   {
@@ -686,21 +526,9 @@
    "cell_type": "code",
    "execution_count": 14,
    "metadata": {},
-   "outputs": [
-    {
-     "data": {
-      "text/plain": [
-       "False"
-      ]
-     },
-     "execution_count": 14,
-     "metadata": {},
-     "output_type": "execute_result"
-    }
-   ],
+   "outputs": [],
    "source": [
-    "#TODO -- Enter your code here\n",
-    "not ( 3 + 4 < 7) and ('x' < 'Y')"
+    "#TODO -- Enter your code here\n"
    ]
   },
   {
@@ -716,33 +544,19 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 15,
-   "metadata": {},
-   "outputs": [
-    {
-     "name": "stdout",
-     "output_type": "stream",
-     "text": [
-      "Welcome to CS220\n",
-      "\n",
-      "4 * ('A' + 'B') is\n",
-      "ABABABAB\n",
-      "\n",
-      "\n",
-      "I think the answer is\n"
-     ]
-    }
-   ],
+   "execution_count": null,
+   "metadata": {},
+   "outputs": [],
    "source": [
     "#TODO -- Modify the code here to practice with commenting\n",
     "\n",
     "print(\"Welcome to CS220\\n\")\n",
     "print(\"4 * ('A' + 'B') is\")\n",
     "print(4 * ('A' + 'B'))\n",
-    "#print(1/0)\n",
+    "print(1/0)\n",
     "print(\"\\n\")\n",
     "print(\"I think the answer is\")\n",
-    "#print("
+    "print("
    ]
   },
   {
-- 
GitLab