From fb57240bb02e31feab1d8d6a838785eb649fbd71 Mon Sep 17 00:00:00 2001 From: Ulrich <ulrich.kerzel@rwth-aachen.de> Date: Tue, 28 Feb 2023 08:35:42 +0100 Subject: [PATCH] rename list l in DataTypes --- pythonintro/DataTypes.ipynb | 5 +++-- pythonintro/FirstSteps.ipynb | 36 ++++++++++++++++++------------------ 2 files changed, 21 insertions(+), 20 deletions(-) diff --git a/pythonintro/DataTypes.ipynb b/pythonintro/DataTypes.ipynb index b541d83..0d66839 100644 --- a/pythonintro/DataTypes.ipynb +++ b/pythonintro/DataTypes.ipynb @@ -56,6 +56,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": { "id": "YNpDZH69EEDK" @@ -63,8 +64,8 @@ "source": [ "### Extending lists\n", "\n", - "There are multiple ways to add new elements to a list ```l````\n", - "(note that normally we would use more descriptive variable names instead of just \"l\"!)\n", + "There are multiple ways to add new elements to a list ```my_list```\n", + "(note that normally we would use more descriptive variable names instead of just ```my_list``` !)\n", "\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", diff --git a/pythonintro/FirstSteps.ipynb b/pythonintro/FirstSteps.ipynb index 4ede0b9..709b62f 100644 --- a/pythonintro/FirstSteps.ipynb +++ b/pythonintro/FirstSteps.ipynb @@ -31,7 +31,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 12, "metadata": {}, "outputs": [ { @@ -40,7 +40,7 @@ "7" ] }, - "execution_count": 1, + "execution_count": 12, "metadata": {}, "output_type": "execute_result" } @@ -58,7 +58,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 13, "metadata": {}, "outputs": [ { @@ -67,7 +67,7 @@ "1.5" ] }, - "execution_count": 2, + "execution_count": 13, "metadata": {}, "output_type": "execute_result" } @@ -87,7 +87,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 3, "metadata": {}, "outputs": [], "source": [ @@ -105,7 +105,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 14, "metadata": {}, "outputs": [ { @@ -114,7 +114,7 @@ "34" ] }, - "execution_count": 6, + "execution_count": 14, "metadata": {}, "output_type": "execute_result" } @@ -133,7 +133,7 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": 15, "metadata": {}, "outputs": [], "source": [ @@ -153,7 +153,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 16, "metadata": {}, "outputs": [ { @@ -162,7 +162,7 @@ "int" ] }, - "execution_count": 8, + "execution_count": 16, "metadata": {}, "output_type": "execute_result" } @@ -192,7 +192,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 17, "metadata": {}, "outputs": [], "source": [ @@ -209,7 +209,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 18, "metadata": {}, "outputs": [ { @@ -236,7 +236,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 19, "metadata": {}, "outputs": [ { @@ -266,14 +266,14 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": 20, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "The circumference is 44 cm.\n" + "The circumference is 34 cm.\n" ] } ], @@ -420,7 +420,7 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": 21, "metadata": {}, "outputs": [ { @@ -463,7 +463,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3.10.6 ('pythonintro-A08DqnGu-py3.10')", + "display_name": "datascienceintro-eVBNPtpL-py3.10", "language": "python", "name": "python3" }, @@ -482,7 +482,7 @@ "orig_nbformat": 4, "vscode": { "interpreter": { - "hash": "eb3a944512c48027e49906d9e47d21cfb9b2c1ddd33f9b79c72df4b5e3a553dc" + "hash": "402de31444172310c7be4e347cbdab8859808fc8e2ecdac42a940ed3f4ddd2fb" } } }, -- GitLab