From 911ce23c2ca873ee948338862237362d2ce265ea Mon Sep 17 00:00:00 2001 From: Magic <rod.paller@gmail.com> Date: Mon, 5 Feb 2024 02:08:13 -0600 Subject: [PATCH 1/4] Finished --- .../Prep_Course_Homework_03.ipynb | 39 ++++++++++++++----- 1 file changed, 30 insertions(+), 9 deletions(-) diff --git a/M03_variablesydatos/Prep_Course_Homework_03.ipynb b/M03_variablesydatos/Prep_Course_Homework_03.ipynb index b4d68b08b..9eb2f7c23 100644 --- a/M03_variablesydatos/Prep_Course_Homework_03.ipynb +++ b/M03_variablesydatos/Prep_Course_Homework_03.ipynb @@ -18,10 +18,21 @@ }, { "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] + "execution_count": 1, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "14\n" + ] + } + ], + "source": [ + "y = 14\n", + "print(y)" + ] }, { "attachments": {}, @@ -33,10 +44,20 @@ }, { "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] + "execution_count": 2, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "<class 'float'>\n" + ] + } + ], + "source": [ + "print(type(8.5))\n" + ] }, { "attachments": {}, @@ -418,7 +439,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.11" + "version": "3.12.1" } }, "nbformat": 4, From 27536db586b69abbedd5849b78c35d31004f9949 Mon Sep 17 00:00:00 2001 From: Magic <rod.paller@gmail.com> Date: Mon, 5 Feb 2024 02:16:29 -0600 Subject: [PATCH 2/4] La rama main ha sido actualizada. Para fusionarla con la rama actual, se debe hacer un pull. --- .../Prep_Course_Homework_03.ipynb | 485 +++++++++++++++--- 1 file changed, 418 insertions(+), 67 deletions(-) diff --git a/M03_variablesydatos/Prep_Course_Homework_03.ipynb b/M03_variablesydatos/Prep_Course_Homework_03.ipynb index 9eb2f7c23..9454e870f 100644 --- a/M03_variablesydatos/Prep_Course_Homework_03.ipynb +++ b/M03_variablesydatos/Prep_Course_Homework_03.ipynb @@ -18,7 +18,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 93, "metadata": {}, "outputs": [ { @@ -44,7 +44,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 94, "metadata": {}, "outputs": [ { @@ -69,10 +69,23 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 95, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "data": { + "text/plain": [ + "int" + ] + }, + "execution_count": 95, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "type(y)" + ] }, { "attachments": {}, @@ -84,10 +97,22 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 96, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Rodrigo Perez Aller\n" + ] + } + ], + "source": [ + "mi_name = \"Rodrigo Perez Aller\"\n", + "type(mi_name)\n", + "print(mi_name)\n" + ] }, { "attachments": {}, @@ -99,10 +124,21 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 97, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(3+8j)\n" + ] + } + ], + "source": [ + "numero_complejo= 3+8j\n", + "print(numero_complejo)" + ] }, { "attachments": {}, @@ -114,10 +150,23 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 98, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "data": { + "text/plain": [ + "complex" + ] + }, + "execution_count": 98, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "type(numero_complejo)" + ] }, { "attachments": {}, @@ -129,10 +178,21 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 99, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "3.1416\n" + ] + } + ], + "source": [ + "pi=3.1416\n", + "print(pi)" + ] }, { "attachments": {}, @@ -144,10 +204,30 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 100, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "data": { + "text/plain": [ + "(False, str, bool)" + ] + }, + "execution_count": 100, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "var1 = 'True'\n", + "var2 = True\n", + "valor_cadena = 'True'\n", + "valor_booleano = True\n", + "son_iguales = (valor_cadena == valor_booleano)\n", + "tipo_valor_cadena = type(valor_cadena)\n", + "tipo_valor_booleano = type(valor_booleano)\n", + "son_iguales, tipo_valor_cadena, tipo_valor_booleano\n" + ] }, { "attachments": {}, @@ -159,10 +239,28 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 101, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "False <class 'str'> <class 'bool'>\n", + "True True\n", + "<class 'str'> <class 'bool'>\n", + "<class 'str'> <class 'bool'>\n", + "False <class 'str'> <class 'bool'>\n" + ] + } + ], + "source": [ + "print(son_iguales, tipo_valor_cadena, tipo_valor_booleano)\n", + "print(var1, var2)\n", + "print(type(var1), type(var2))\n", + "print(type(valor_cadena), type(valor_booleano))\n", + "print(son_iguales, tipo_valor_cadena, tipo_valor_booleano)" + ] }, { "attachments": {}, @@ -174,10 +272,12 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 102, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "y = 18+11.4" + ] }, { "attachments": {}, @@ -189,10 +289,22 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 103, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(7+14j)\n" + ] + } + ], + "source": [ + "y = 2+5j\n", + "w = 5+9j\n", + "print(y+w)\n" + ] }, { "attachments": {}, @@ -204,10 +316,21 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 104, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(6.61+9j)\n" + ] + } + ], + "source": [ + "y= w +1.61\n", + "print(y)" + ] }, { "attachments": {}, @@ -219,10 +342,20 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 105, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "30\n" + ] + } + ], + "source": [ + "print(5*6)" + ] }, { "attachments": {}, @@ -234,10 +367,20 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 106, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "15625\n" + ] + } + ], + "source": [ + "print(5**6)" + ] }, { "attachments": {}, @@ -249,10 +392,32 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 107, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "7.428571428571429\n" + ] + }, + { + "data": { + "text/plain": [ + "7.43" + ] + }, + "execution_count": 107, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "p = 52/7\n", + "print(p)\n", + "round(p, 2)" + ] }, { "attachments": {}, @@ -264,10 +429,20 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 108, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "7\n" + ] + } + ], + "source": [ + "print(52//7)" + ] }, { "attachments": {}, @@ -279,10 +454,23 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 109, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "data": { + "text/plain": [ + "3" + ] + }, + "execution_count": 109, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "27%4" + ] }, { "attachments": {}, @@ -294,10 +482,23 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 110, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "data": { + "text/plain": [ + "27" + ] + }, + "execution_count": 110, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "6*4+3" + ] }, { "attachments": {}, @@ -309,10 +510,22 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 111, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Estados Unidos\n" + ] + } + ], + "source": [ + "var1 = \"Estados\"\n", + "var2 = \"Unidos\"\n", + "print(var1, var2)" + ] }, { "attachments": {}, @@ -324,10 +537,23 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 112, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "data": { + "text/plain": [ + "False" + ] + }, + "execution_count": 112, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "2==\"2\"" + ] }, { "attachments": {}, @@ -339,10 +565,23 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 113, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "data": { + "text/plain": [ + "True" + ] + }, + "execution_count": 113, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "2== int(\"2\")" + ] }, { "attachments": {}, @@ -354,10 +593,24 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 118, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "ename": "TypeError", + "evalue": "'float' object is not callable", + "output_type": "error", + "traceback": [ + "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m", + "\u001b[1;31mTypeError\u001b[0m Traceback (most recent call last)", + "Cell \u001b[1;32mIn[118], line 1\u001b[0m\n\u001b[1;32m----> 1\u001b[0m a \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;43mfloat\u001b[39;49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43m3,8\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\n", + "\u001b[1;31mTypeError\u001b[0m: 'float' object is not callable" + ] + } + ], + "source": [ + "a = float(\"3,8\")" + ] }, { "attachments": {}, @@ -371,8 +624,20 @@ "cell_type": "code", "execution_count": null, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "-4\n" + ] + } + ], + "source": [ + "a = -3\n", + "a -= 1\n", + "print(a)" + ] }, { "attachments": {}, @@ -386,8 +651,21 @@ "cell_type": "code", "execution_count": null, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "data": { + "text/plain": [ + "4" + ] + }, + "execution_count": 43, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "1<<2" + ] }, { "attachments": {}, @@ -401,8 +679,81 @@ "cell_type": "code", "execution_count": null, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "ename": "TypeError", + "evalue": "unsupported operand type(s) for +: 'int' and 'str'", + "output_type": "error", + "traceback": [ + "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m", + "\u001b[1;31mTypeError\u001b[0m Traceback (most recent call last)", + "Cell \u001b[1;32mIn[56], line 1\u001b[0m\n\u001b[1;32m----> 1\u001b[0m \u001b[38;5;241;43m2\u001b[39;49m\u001b[38;5;241;43m+\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43m2\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\n", + "\u001b[1;31mTypeError\u001b[0m: unsupported operand type(s) for +: 'int' and 'str'" + ] + } + ], + "source": [ + "2+\"2\"" + ] + }, + { + "cell_type": "code", + "execution_count": 120, + "metadata": {}, + "outputs": [ + { + "ename": "TypeError", + "evalue": "'float' object is not callable", + "output_type": "error", + "traceback": [ + "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m", + "\u001b[1;31mTypeError\u001b[0m Traceback (most recent call last)", + "Cell \u001b[1;32mIn[120], line 1\u001b[0m\n\u001b[1;32m----> 1\u001b[0m \u001b[38;5;28;43mfloat\u001b[39;49m\u001b[43m(\u001b[49m\u001b[38;5;241;43m2\u001b[39;49m\u001b[43m)\u001b[49m \u001b[38;5;241m+\u001b[39m \u001b[38;5;28mfloat\u001b[39m(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m2\u001b[39m\u001b[38;5;124m\"\u001b[39m)\n", + "\u001b[1;31mTypeError\u001b[0m: 'float' object is not callable" + ] + } + ], + "source": [ + "float(2) + float(\"2\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "4\n" + ] + } + ], + "source": [ + "int(2) + int(\"2\")\n", + "print(int(2) + int(\"2\"))" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "'22'" + ] + }, + "execution_count": 59, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "str(2) + str(\"2\")" + ] }, { "attachments": {}, From b0ad761ab27977d6c4b54ad604e935813c5bf54f Mon Sep 17 00:00:00 2001 From: Magic <rod.paller@gmail.com> Date: Mon, 5 Feb 2024 02:19:30 -0600 Subject: [PATCH 3/4] Listo para hacer un commit --- .../Prep_Course_Homework_03.ipynb | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/M03_variablesydatos/Prep_Course_Homework_03.ipynb b/M03_variablesydatos/Prep_Course_Homework_03.ipynb index 9454e870f..9a38f8bb8 100644 --- a/M03_variablesydatos/Prep_Course_Homework_03.ipynb +++ b/M03_variablesydatos/Prep_Course_Homework_03.ipynb @@ -765,10 +765,22 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 123, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "este texto se repiteeste texto se repiteeste texto se repite3veces\n" + ] + } + ], + "source": [ + "var1 = \"este texto se repite\"\n", + "var2 = 3\n", + "print(var1*var2+str(var2) + \"veces\")" + ] } ], "metadata": { From df40af2ab0e8e06d9d83ce0f14f17bd99a1aa5ba Mon Sep 17 00:00:00 2001 From: Magic <rod.paller@gmail.com> Date: Mon, 5 Feb 2024 11:40:54 -0600 Subject: [PATCH 4/4] "Done" --- .../Prep_Course_Homework_03.ipynb | 92 ++++++++----------- 1 file changed, 39 insertions(+), 53 deletions(-) diff --git a/M03_variablesydatos/Prep_Course_Homework_03.ipynb b/M03_variablesydatos/Prep_Course_Homework_03.ipynb index 9a38f8bb8..8821a2e58 100644 --- a/M03_variablesydatos/Prep_Course_Homework_03.ipynb +++ b/M03_variablesydatos/Prep_Course_Homework_03.ipynb @@ -18,7 +18,7 @@ }, { "cell_type": "code", - "execution_count": 93, + "execution_count": 124, "metadata": {}, "outputs": [ { @@ -44,7 +44,7 @@ }, { "cell_type": "code", - "execution_count": 94, + "execution_count": 125, "metadata": {}, "outputs": [ { @@ -69,7 +69,7 @@ }, { "cell_type": "code", - "execution_count": 95, + "execution_count": 126, "metadata": {}, "outputs": [ { @@ -78,7 +78,7 @@ "int" ] }, - "execution_count": 95, + "execution_count": 126, "metadata": {}, "output_type": "execute_result" } @@ -97,7 +97,7 @@ }, { "cell_type": "code", - "execution_count": 96, + "execution_count": 127, "metadata": {}, "outputs": [ { @@ -124,7 +124,7 @@ }, { "cell_type": "code", - "execution_count": 97, + "execution_count": 128, "metadata": {}, "outputs": [ { @@ -150,7 +150,7 @@ }, { "cell_type": "code", - "execution_count": 98, + "execution_count": 129, "metadata": {}, "outputs": [ { @@ -159,7 +159,7 @@ "complex" ] }, - "execution_count": 98, + "execution_count": 129, "metadata": {}, "output_type": "execute_result" } @@ -178,7 +178,7 @@ }, { "cell_type": "code", - "execution_count": 99, + "execution_count": 130, "metadata": {}, "outputs": [ { @@ -204,7 +204,7 @@ }, { "cell_type": "code", - "execution_count": 100, + "execution_count": 131, "metadata": {}, "outputs": [ { @@ -213,7 +213,7 @@ "(False, str, bool)" ] }, - "execution_count": 100, + "execution_count": 131, "metadata": {}, "output_type": "execute_result" } @@ -239,7 +239,7 @@ }, { "cell_type": "code", - "execution_count": 101, + "execution_count": 132, "metadata": {}, "outputs": [ { @@ -272,7 +272,7 @@ }, { "cell_type": "code", - "execution_count": 102, + "execution_count": 133, "metadata": {}, "outputs": [], "source": [ @@ -289,7 +289,7 @@ }, { "cell_type": "code", - "execution_count": 103, + "execution_count": 134, "metadata": {}, "outputs": [ { @@ -316,7 +316,7 @@ }, { "cell_type": "code", - "execution_count": 104, + "execution_count": 135, "metadata": {}, "outputs": [ { @@ -342,7 +342,7 @@ }, { "cell_type": "code", - "execution_count": 105, + "execution_count": 136, "metadata": {}, "outputs": [ { @@ -367,7 +367,7 @@ }, { "cell_type": "code", - "execution_count": 106, + "execution_count": 137, "metadata": {}, "outputs": [ { @@ -392,7 +392,7 @@ }, { "cell_type": "code", - "execution_count": 107, + "execution_count": 138, "metadata": {}, "outputs": [ { @@ -408,7 +408,7 @@ "7.43" ] }, - "execution_count": 107, + "execution_count": 138, "metadata": {}, "output_type": "execute_result" } @@ -429,7 +429,7 @@ }, { "cell_type": "code", - "execution_count": 108, + "execution_count": 139, "metadata": {}, "outputs": [ { @@ -454,7 +454,7 @@ }, { "cell_type": "code", - "execution_count": 109, + "execution_count": 140, "metadata": {}, "outputs": [ { @@ -463,7 +463,7 @@ "3" ] }, - "execution_count": 109, + "execution_count": 140, "metadata": {}, "output_type": "execute_result" } @@ -482,7 +482,7 @@ }, { "cell_type": "code", - "execution_count": 110, + "execution_count": 141, "metadata": {}, "outputs": [ { @@ -491,7 +491,7 @@ "27" ] }, - "execution_count": 110, + "execution_count": 141, "metadata": {}, "output_type": "execute_result" } @@ -510,7 +510,7 @@ }, { "cell_type": "code", - "execution_count": 111, + "execution_count": 142, "metadata": {}, "outputs": [ { @@ -537,7 +537,7 @@ }, { "cell_type": "code", - "execution_count": 112, + "execution_count": 143, "metadata": {}, "outputs": [ { @@ -546,7 +546,7 @@ "False" ] }, - "execution_count": 112, + "execution_count": 143, "metadata": {}, "output_type": "execute_result" } @@ -565,7 +565,7 @@ }, { "cell_type": "code", - "execution_count": 113, + "execution_count": 144, "metadata": {}, "outputs": [ { @@ -574,7 +574,7 @@ "True" ] }, - "execution_count": 113, + "execution_count": 144, "metadata": {}, "output_type": "execute_result" } @@ -593,7 +593,7 @@ }, { "cell_type": "code", - "execution_count": 118, + "execution_count": 145, "metadata": {}, "outputs": [ { @@ -603,7 +603,7 @@ "traceback": [ "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[1;31mTypeError\u001b[0m Traceback (most recent call last)", - "Cell \u001b[1;32mIn[118], line 1\u001b[0m\n\u001b[1;32m----> 1\u001b[0m a \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;43mfloat\u001b[39;49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43m3,8\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\n", + "Cell \u001b[1;32mIn[145], line 1\u001b[0m\n\u001b[1;32m----> 1\u001b[0m a \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;43mfloat\u001b[39;49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43m3,8\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\n", "\u001b[1;31mTypeError\u001b[0m: 'float' object is not callable" ] } @@ -696,27 +696,6 @@ "2+\"2\"" ] }, - { - "cell_type": "code", - "execution_count": 120, - "metadata": {}, - "outputs": [ - { - "ename": "TypeError", - "evalue": "'float' object is not callable", - "output_type": "error", - "traceback": [ - "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m", - "\u001b[1;31mTypeError\u001b[0m Traceback (most recent call last)", - "Cell \u001b[1;32mIn[120], line 1\u001b[0m\n\u001b[1;32m----> 1\u001b[0m \u001b[38;5;28;43mfloat\u001b[39;49m\u001b[43m(\u001b[49m\u001b[38;5;241;43m2\u001b[39;49m\u001b[43m)\u001b[49m \u001b[38;5;241m+\u001b[39m \u001b[38;5;28mfloat\u001b[39m(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m2\u001b[39m\u001b[38;5;124m\"\u001b[39m)\n", - "\u001b[1;31mTypeError\u001b[0m: 'float' object is not callable" - ] - } - ], - "source": [ - "float(2) + float(\"2\")" - ] - }, { "cell_type": "code", "execution_count": null, @@ -765,7 +744,7 @@ }, { "cell_type": "code", - "execution_count": 123, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -781,6 +760,13 @@ "var2 = 3\n", "print(var1*var2+str(var2) + \"veces\")" ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": {