From a1b4ef7fe52c0f16bc990ea8228c8d595f73fcc7 Mon Sep 17 00:00:00 2001
From: Ulrich <ulrich.kerzel@rwth-aachen.de>
Date: Tue, 28 Feb 2023 09:05:41 +0100
Subject: [PATCH] correct some typos

---
 pythonintro/DataTypes.ipynb | 68 +++++++++++++++++--------------------
 1 file changed, 32 insertions(+), 36 deletions(-)

diff --git a/pythonintro/DataTypes.ipynb b/pythonintro/DataTypes.ipynb
index 0d66839..cfa05e4 100644
--- a/pythonintro/DataTypes.ipynb
+++ b/pythonintro/DataTypes.ipynb
@@ -26,7 +26,7 @@
     },
     {
       "cell_type": "code",
-      "execution_count": null,
+      "execution_count": 1,
       "metadata": {
         "colab": {
           "base_uri": "https://localhost:8080/"
@@ -69,13 +69,12 @@
         "\n",
         "*   add a new element at the end of the list: ```l.append(element)```\n",
         "*   insert an element at a specific position: ```l.insert(index, element)```\n",
-        "*   concatenating lists: ```list_1 + list_2```\n",
-        "\n"
+        "*   concatenating lists: ```list_1 + list_2```"
       ]
     },
     {
       "cell_type": "code",
-      "execution_count": null,
+      "execution_count": 2,
       "metadata": {
         "colab": {
           "base_uri": "https://localhost:8080/"
@@ -88,9 +87,9 @@
           "name": "stdout",
           "output_type": "stream",
           "text": [
-            "[1, 2, 3, 3, 4, 5, 5]\n",
+            "[1, 2, 3, 4, 5]\n",
             "-------------\n",
-            "[1, 2, 3, 3, 3, 4, 5, 5]\n",
+            "[1, 2, 3, 3, 4, 5]\n",
             "-------------\n",
             "[1, 2, 3, 2, 3, 4]\n",
             "-------------\n"
@@ -137,7 +136,7 @@
     },
     {
       "cell_type": "code",
-      "execution_count": null,
+      "execution_count": 3,
       "metadata": {
         "id": "yzJ9yfQfIXda"
       },
@@ -161,7 +160,7 @@
     },
     {
       "cell_type": "code",
-      "execution_count": 5,
+      "execution_count": 4,
       "metadata": {},
       "outputs": [
         {
@@ -195,7 +194,7 @@
     },
     {
       "cell_type": "code",
-      "execution_count": 8,
+      "execution_count": 5,
       "metadata": {},
       "outputs": [
         {
@@ -219,7 +218,7 @@
         "print(my_list)\n",
         "print('-----------')\n",
         "\n",
-        "# print the second element\n",
+        "# print the third element\n",
         "print(my_list[2])\n",
         "print('-----------')\n",
         "\n",
@@ -248,7 +247,7 @@
     },
     {
       "cell_type": "code",
-      "execution_count": 9,
+      "execution_count": 6,
       "metadata": {},
       "outputs": [
         {
@@ -287,7 +286,7 @@
     },
     {
       "cell_type": "code",
-      "execution_count": 17,
+      "execution_count": 7,
       "metadata": {},
       "outputs": [
         {
@@ -300,8 +299,7 @@
             "[2, 3, 4, 5]\n",
             "-----------\n",
             "-----------\n",
-            "-----------\n",
-            "[1, 3, 5]\n"
+            "-----------\n"
           ]
         }
       ],
@@ -347,7 +345,7 @@
     },
     {
       "cell_type": "code",
-      "execution_count": 13,
+      "execution_count": 8,
       "metadata": {},
       "outputs": [
         {
@@ -377,17 +375,9 @@
     },
     {
       "cell_type": "code",
-      "execution_count": 16,
+      "execution_count": 9,
       "metadata": {},
-      "outputs": [
-        {
-          "name": "stdout",
-          "output_type": "stream",
-          "text": [
-            "RUN\n"
-          ]
-        }
-      ],
+      "outputs": [],
       "source": [
         "my_word = 'nurse'\n",
         "\n",
@@ -408,7 +398,7 @@
     },
     {
       "cell_type": "code",
-      "execution_count": 18,
+      "execution_count": 10,
       "metadata": {},
       "outputs": [
         {
@@ -428,7 +418,7 @@
           "traceback": [
             "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
             "\u001b[0;31mTypeError\u001b[0m                                 Traceback (most recent call last)",
-            "Cell \u001b[0;32mIn [18], line 10\u001b[0m\n\u001b[1;32m      7\u001b[0m \u001b[39mprint\u001b[39m(\u001b[39m'\u001b[39m\u001b[39m-----------\u001b[39m\u001b[39m'\u001b[39m)\n\u001b[1;32m      9\u001b[0m \u001b[39m#this will fail.\u001b[39;00m\n\u001b[0;32m---> 10\u001b[0m my_tuple[\u001b[39m1\u001b[39;49m] \u001b[39m=\u001b[39m \u001b[39m10\u001b[39m\n",
+            "Cell \u001b[0;32mIn [10], line 10\u001b[0m\n\u001b[1;32m      7\u001b[0m \u001b[39mprint\u001b[39m(\u001b[39m'\u001b[39m\u001b[39m-----------\u001b[39m\u001b[39m'\u001b[39m)\n\u001b[1;32m      9\u001b[0m \u001b[39m#this will fail.\u001b[39;00m\n\u001b[0;32m---> 10\u001b[0m my_tuple[\u001b[39m1\u001b[39;49m] \u001b[39m=\u001b[39m \u001b[39m10\u001b[39m\n",
             "\u001b[0;31mTypeError\u001b[0m: 'tuple' object does not support item assignment"
           ]
         }
@@ -459,7 +449,7 @@
     },
     {
       "cell_type": "code",
-      "execution_count": 20,
+      "execution_count": 11,
       "metadata": {},
       "outputs": [
         {
@@ -485,6 +475,7 @@
       ]
     },
     {
+      "attachments": {},
       "cell_type": "markdown",
       "metadata": {},
       "source": [
@@ -501,12 +492,17 @@
         "\n",
         "The general syntax is:\n",
         "\n",
-        "``` my_dict = { key_1 : value_1, key_1 : value_2, ...} ```"
+        "``` my_dict = { key_1 : value_1, key_2 : value_2, ...} ```"
       ]
     },
+    {
+      "cell_type": "markdown",
+      "metadata": {},
+      "source": []
+    },
     {
       "cell_type": "code",
-      "execution_count": 21,
+      "execution_count": 12,
       "metadata": {},
       "outputs": [
         {
@@ -543,7 +539,7 @@
     },
     {
       "cell_type": "code",
-      "execution_count": 23,
+      "execution_count": 13,
       "metadata": {},
       "outputs": [
         {
@@ -575,7 +571,7 @@
     },
     {
       "cell_type": "code",
-      "execution_count": 24,
+      "execution_count": 14,
       "metadata": {},
       "outputs": [
         {
@@ -604,7 +600,7 @@
     },
     {
       "cell_type": "code",
-      "execution_count": 28,
+      "execution_count": 15,
       "metadata": {},
       "outputs": [],
       "source": [
@@ -629,7 +625,7 @@
     },
     {
       "cell_type": "code",
-      "execution_count": 32,
+      "execution_count": 16,
       "metadata": {},
       "outputs": [
         {
@@ -674,7 +670,7 @@
       "provenance": []
     },
     "kernelspec": {
-      "display_name": "Python 3.10.6 ('pythonintro-A08DqnGu-py3.10')",
+      "display_name": "pythonintro-NlsZwE_T-py3.10",
       "language": "python",
       "name": "python3"
     },
@@ -692,7 +688,7 @@
     },
     "vscode": {
       "interpreter": {
-        "hash": "eb3a944512c48027e49906d9e47d21cfb9b2c1ddd33f9b79c72df4b5e3a553dc"
+        "hash": "e79a103ddccd343bb7d1be701b671c098efc420295b660c764763b93be962cdf"
       }
     }
   },
-- 
GitLab