From 35c49092e06daee0684510eb29269ecbf5337d47 Mon Sep 17 00:00:00 2001
From: Torresas <velezjosejuannn@gmail.com>
Date: Tue, 22 Jul 2025 22:32:30 -0500
Subject: [PATCH 1/3] =?UTF-8?q?Se=20cre=C3=B3=20con=20Colab?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../soluciones/tipos-datos/ejercicio1.ipynb   | 49 +++++++++++++++++++
 1 file changed, 49 insertions(+)
 create mode 100644 content/es/docencia/python/ejercicios/soluciones/tipos-datos/ejercicio1.ipynb

diff --git a/content/es/docencia/python/ejercicios/soluciones/tipos-datos/ejercicio1.ipynb b/content/es/docencia/python/ejercicios/soluciones/tipos-datos/ejercicio1.ipynb
new file mode 100644
index 000000000..2ba8dc2e9
--- /dev/null
+++ b/content/es/docencia/python/ejercicios/soluciones/tipos-datos/ejercicio1.ipynb
@@ -0,0 +1,49 @@
+{
+  "cells": [
+    {
+      "cell_type": "markdown",
+      "metadata": {
+        "id": "ySzWDQHoUX17"
+      },
+      "source": [
+        "## Ejercicio\n",
+        "Escribir un programa que muestre por pantalla la frase `¡Hola mundo!`"
+      ]
+    },
+    {
+      "cell_type": "code",
+      "execution_count": null,
+      "metadata": {
+        "id": "fzx3KhimUX18"
+      },
+      "outputs": [],
+      "source": [
+        "print(\"Hola Juanjo, como estas?\")"
+      ]
+    }
+  ],
+  "metadata": {
+    "kernelspec": {
+      "display_name": "Python 3",
+      "language": "python",
+      "name": "python3"
+    },
+    "language_info": {
+      "codemirror_mode": {
+        "name": "ipython",
+        "version": 3
+      },
+      "file_extension": ".py",
+      "mimetype": "text/x-python",
+      "name": "python",
+      "nbconvert_exporter": "python",
+      "pygments_lexer": "ipython3",
+      "version": "3.7.1"
+    },
+    "colab": {
+      "provenance": []
+    }
+  },
+  "nbformat": 4,
+  "nbformat_minor": 0
+}
\ No newline at end of file

From 7d74bb38d151f544ce236b1c484f6ceb04ea89e5 Mon Sep 17 00:00:00 2001
From: Torresas <velezjosejuannn@gmail.com>
Date: Tue, 22 Jul 2025 23:36:54 -0500
Subject: [PATCH 2/3] =?UTF-8?q?Se=20cre=C3=B3=20con=20Colab?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../soluciones/tipos-datos/ejercicio1.ipynb   | 291 +++++++++++++++++-
 1 file changed, 283 insertions(+), 8 deletions(-)

diff --git a/content/es/docencia/python/ejercicios/soluciones/tipos-datos/ejercicio1.ipynb b/content/es/docencia/python/ejercicios/soluciones/tipos-datos/ejercicio1.ipynb
index 2ba8dc2e9..2ef4d2f92 100644
--- a/content/es/docencia/python/ejercicios/soluciones/tipos-datos/ejercicio1.ipynb
+++ b/content/es/docencia/python/ejercicios/soluciones/tipos-datos/ejercicio1.ipynb
@@ -3,23 +3,297 @@
     {
       "cell_type": "markdown",
       "metadata": {
-        "id": "ySzWDQHoUX17"
+        "id": "view-in-github",
+        "colab_type": "text"
       },
       "source": [
-        "## Ejercicio\n",
-        "Escribir un programa que muestre por pantalla la frase `¡Hola mundo!`"
+        "<a href=\"https://colab.research.google.com/github/Torresas/Python-Prep/blob/main/content/es/docencia/python/ejercicios/soluciones/tipos-datos/ejercicio1.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
+      ]
+    },
+    {
+      "cell_type": "markdown",
+      "metadata": {
+        "id": "CTkuPz_7V0AY"
+      },
+      "source": [
+        "## Solución"
       ]
     },
     {
       "cell_type": "code",
-      "execution_count": null,
+      "execution_count": 5,
+      "metadata": {
+        "id": "TIctGrpaV0AY",
+        "outputId": "774100bb-5644-4e2a-ebec-15f84897775e",
+        "colab": {
+          "base_uri": "https://localhost:8080/"
+        }
+      },
+      "outputs": [
+        {
+          "output_type": "stream",
+          "name": "stdout",
+          "text": [
+            "¡Hola Mundo!\n"
+          ]
+        }
+      ],
+      "source": [
+        "print(\"Hola juanjo, como estas?\")"
+      ]
+    },
+    {
+      "cell_type": "code",
+      "source": [
+        "cadena = \"Hola, como estas??\"\n",
+        "\n",
+        "print(cadena)"
+      ],
       "metadata": {
-        "id": "fzx3KhimUX18"
+        "id": "xZOhYiY6V_29",
+        "outputId": "8a7e05d2-44a9-46e9-bec1-e27a8330cf35",
+        "colab": {
+          "base_uri": "https://localhost:8080/"
+        }
       },
-      "outputs": [],
+      "execution_count": 8,
+      "outputs": [
+        {
+          "output_type": "stream",
+          "name": "stdout",
+          "text": [
+            "Hola, como estas??\n"
+          ]
+        }
+      ]
+    },
+    {
+      "cell_type": "code",
       "source": [
-        "print(\"Hola Juanjo, como estas?\")"
+        "nombre = input(\"Hola, podrías ingresar tu nombre?\")\n",
+        "\n",
+        "print(\"Hola\" , nombre , \", como estas?\")"
+      ],
+      "metadata": {
+        "id": "ChCKeCLuWRgi",
+        "outputId": "a01b3b18-1c8c-47a6-8fa7-366c2c12ed42",
+        "colab": {
+          "base_uri": "https://localhost:8080/"
+        }
+      },
+      "execution_count": 17,
+      "outputs": [
+        {
+          "output_type": "stream",
+          "name": "stdout",
+          "text": [
+            "Hola, podrías ingresar tu nombre?Juan\n",
+            "Hola Juan , como estas?\n"
+          ]
+        }
+      ]
+    },
+    {
+      "cell_type": "code",
+      "source": [
+        "Resultado = ( (3 + 2) / ( 2 * 5))**2\n",
+        "\n",
+        "print(Resultado)"
+      ],
+      "metadata": {
+        "id": "byEyB6nRYych",
+        "outputId": "72f6a341-315d-4985-c8fa-e5517a15ee96",
+        "colab": {
+          "base_uri": "https://localhost:8080/"
+        }
+      },
+      "execution_count": 24,
+      "outputs": [
+        {
+          "output_type": "stream",
+          "name": "stdout",
+          "text": [
+            "0.25\n"
+          ]
+        }
+      ]
+    },
+    {
+      "cell_type": "code",
+      "source": [
+        "Horas = float(input(\"Ingrese el numero de horas trabajadas\"))\n",
+        "Pago = float(input(\"ingrese el monto de pago por hora\"))\n",
+        "Total = Horas * Pago\n",
+        "\n",
+        "print(\"El monto que le pagan es de,\", Total)"
+      ],
+      "metadata": {
+        "id": "P5n4UATyaWbJ",
+        "outputId": "18e7368a-aa5d-4a85-8ceb-0175d6f06321",
+        "colab": {
+          "base_uri": "https://localhost:8080/"
+        }
+      },
+      "execution_count": 27,
+      "outputs": [
+        {
+          "output_type": "stream",
+          "name": "stdout",
+          "text": [
+            "Ingrese el numero de horas trabajadas 8\n",
+            "ingrese el monto de pago por hora 9\n",
+            "El monto que le pagan es de, 72.0\n"
+          ]
+        }
+      ]
+    },
+    {
+      "cell_type": "code",
+      "source": [
+        "n = float(input(\"Ingrese un numero entero\"))\n",
+        "proceso = n * ((n + 1) / 2)\n",
+        "\n",
+        "print(proceso)"
+      ],
+      "metadata": {
+        "id": "8dKGs6HQbRMd",
+        "outputId": "d196ae93-472d-4a01-e64b-b76d67b9ebed",
+        "colab": {
+          "base_uri": "https://localhost:8080/"
+        }
+      },
+      "execution_count": 32,
+      "outputs": [
+        {
+          "output_type": "stream",
+          "name": "stdout",
+          "text": [
+            "Ingrese un numero entero8\n",
+            "36.0\n"
+          ]
+        }
       ]
+    },
+    {
+      "cell_type": "code",
+      "source": [
+        "peso = input(\"Ingrese tu peso en kg \")\n",
+        "estatura = input(\"Ingresa tu estatura en metros\")\n",
+        "imc = (float(peso)/float(estatura)**2,2)\n",
+        "print(\"Tu indice de masa corporal es de\", imc)\n"
+      ],
+      "metadata": {
+        "id": "xKvTvMCCcMxg",
+        "outputId": "7901fcb1-5f8a-4010-a2ca-d201456c6073",
+        "colab": {
+          "base_uri": "https://localhost:8080/"
+        }
+      },
+      "execution_count": 35,
+      "outputs": [
+        {
+          "output_type": "stream",
+          "name": "stdout",
+          "text": [
+            "¿Cuál es tu peso en kg? 50\n",
+            "¿Cuál es tu estatura en metros?1.71\n",
+            "Tu indice de masa corporal es de (17.09927841045108, 2)\n"
+          ]
+        }
+      ]
+    },
+    {
+      "cell_type": "code",
+      "source": [
+        "n = input(\"ingresa el numero) \")\n",
+        "m = input(\"ingrese otro numero\")\n",
+        "print(n + \" entre \",  m ,\" da un cociente \", str(int(n) // int(m)) ,\" y un resto \" , str(int(n) % int(m)))"
+      ],
+      "metadata": {
+        "id": "7lgYSyI5imGs"
+      },
+      "execution_count": null,
+      "outputs": []
+    },
+    {
+      "cell_type": "code",
+      "source": [
+        "cantidad = float(input(\"Cual es su cantidad a invertir\"))\n",
+        "interes = float(input(\"El interes anual? \"))\n",
+        "años = int(input(\"Y a cuantos años?\"))\n",
+        "print(\"capital final \" + str(round(cantidad * (interes / 100 + 1) ** años, 2)))"
+      ],
+      "metadata": {
+        "id": "zVpc-umbjC9F",
+        "outputId": "ff23197e-fde5-4887-859a-b22f375ffcf0",
+        "colab": {
+          "base_uri": "https://localhost:8080/"
+        }
+      },
+      "execution_count": 36,
+      "outputs": [
+        {
+          "output_type": "stream",
+          "name": "stdout",
+          "text": [
+            "Cual es su cantidad a invertir100\n",
+            "El interes anual? 200\n",
+            "Y a cuantos años?5\n",
+            "capital final 24300.0\n"
+          ]
+        }
+      ]
+    },
+    {
+      "cell_type": "code",
+      "source": [
+        "peso_p = 112\n",
+        "peso_mu = 75\n",
+        "payasos = int(input(\"ingrese el número de payasos\"))\n",
+        "muñecas = int(input(\"ingrese el número de muñecas\"))\n",
+        "peso_total = peso_p * payasos + peso_mu * muñecas\n",
+        "print(\"el total del peso es \" + str(peso_total))"
+      ],
+      "metadata": {
+        "id": "6AxLLnPYjliY"
+      },
+      "execution_count": null,
+      "outputs": []
+    },
+    {
+      "cell_type": "code",
+      "source": [
+        "inversion = float(input(\"ingrese la inversion total\"))\n",
+        "interes = 0.04\n",
+        "balance1 = inversion * (1 + interes)\n",
+        "print(\"primer año\" + str(round(balance1, 2)))\n",
+        "balance2 = balance1 * (1 + interes)\n",
+        "print(\"segundo año:\" + str(round(balance2, 2)))\n",
+        "balance3 = balance2 * (1 + interes)\n",
+        "print(\"tercer año:\" + str(round(balance3, 2)))"
+      ],
+      "metadata": {
+        "id": "lyimKhUmj55n"
+      },
+      "execution_count": null,
+      "outputs": []
+    },
+    {
+      "cell_type": "code",
+      "source": [
+        "barras = int(input(\"Cual es el número de barras vendidas que no frescas\"))\n",
+        "precio = 3.49\n",
+        "descuento = 0.6\n",
+        "coste = barras * precio * (1 - descuento)\n",
+        "print(\"El valor de una barra fresca es \" + str(precio) + \"€\")\n",
+        "print(\"El valor de un descuento de una barra no fresca es\" + str(descuento * 100) + \"%\")\n",
+        "print(\"El total es  \" + str(round(coste, 2)) + \"€\")"
+      ],
+      "metadata": {
+        "id": "XURhmV0YkCVb"
+      },
+      "execution_count": null,
+      "outputs": []
     }
   ],
   "metadata": {
@@ -41,7 +315,8 @@
       "version": "3.7.1"
     },
     "colab": {
-      "provenance": []
+      "provenance": [],
+      "include_colab_link": true
     }
   },
   "nbformat": 4,

From a4240d54d736b977ff3cb659c446b3fc5c643f0f Mon Sep 17 00:00:00 2001
From: Torresas <velezjosejuannn@gmail.com>
Date: Tue, 22 Jul 2025 23:39:58 -0500
Subject: [PATCH 3/3] =?UTF-8?q?Se=20cre=C3=B3=20con=20Colab?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../soluciones/tipos-datos/ejercicio1.ipynb   | 48 +++++++++----------
 1 file changed, 24 insertions(+), 24 deletions(-)

diff --git a/content/es/docencia/python/ejercicios/soluciones/tipos-datos/ejercicio1.ipynb b/content/es/docencia/python/ejercicios/soluciones/tipos-datos/ejercicio1.ipynb
index 2ef4d2f92..ee2fcd707 100644
--- a/content/es/docencia/python/ejercicios/soluciones/tipos-datos/ejercicio1.ipynb
+++ b/content/es/docencia/python/ejercicios/soluciones/tipos-datos/ejercicio1.ipynb
@@ -23,11 +23,11 @@
       "cell_type": "code",
       "execution_count": 5,
       "metadata": {
-        "id": "TIctGrpaV0AY",
-        "outputId": "774100bb-5644-4e2a-ebec-15f84897775e",
         "colab": {
           "base_uri": "https://localhost:8080/"
-        }
+        },
+        "id": "TIctGrpaV0AY",
+        "outputId": "774100bb-5644-4e2a-ebec-15f84897775e"
       },
       "outputs": [
         {
@@ -50,11 +50,11 @@
         "print(cadena)"
       ],
       "metadata": {
-        "id": "xZOhYiY6V_29",
-        "outputId": "8a7e05d2-44a9-46e9-bec1-e27a8330cf35",
         "colab": {
           "base_uri": "https://localhost:8080/"
-        }
+        },
+        "id": "xZOhYiY6V_29",
+        "outputId": "8a7e05d2-44a9-46e9-bec1-e27a8330cf35"
       },
       "execution_count": 8,
       "outputs": [
@@ -75,11 +75,11 @@
         "print(\"Hola\" , nombre , \", como estas?\")"
       ],
       "metadata": {
-        "id": "ChCKeCLuWRgi",
-        "outputId": "a01b3b18-1c8c-47a6-8fa7-366c2c12ed42",
         "colab": {
           "base_uri": "https://localhost:8080/"
-        }
+        },
+        "id": "ChCKeCLuWRgi",
+        "outputId": "a01b3b18-1c8c-47a6-8fa7-366c2c12ed42"
       },
       "execution_count": 17,
       "outputs": [
@@ -101,11 +101,11 @@
         "print(Resultado)"
       ],
       "metadata": {
-        "id": "byEyB6nRYych",
-        "outputId": "72f6a341-315d-4985-c8fa-e5517a15ee96",
         "colab": {
           "base_uri": "https://localhost:8080/"
-        }
+        },
+        "id": "byEyB6nRYych",
+        "outputId": "72f6a341-315d-4985-c8fa-e5517a15ee96"
       },
       "execution_count": 24,
       "outputs": [
@@ -128,11 +128,11 @@
         "print(\"El monto que le pagan es de,\", Total)"
       ],
       "metadata": {
-        "id": "P5n4UATyaWbJ",
-        "outputId": "18e7368a-aa5d-4a85-8ceb-0175d6f06321",
         "colab": {
           "base_uri": "https://localhost:8080/"
-        }
+        },
+        "id": "P5n4UATyaWbJ",
+        "outputId": "18e7368a-aa5d-4a85-8ceb-0175d6f06321"
       },
       "execution_count": 27,
       "outputs": [
@@ -156,11 +156,11 @@
         "print(proceso)"
       ],
       "metadata": {
-        "id": "8dKGs6HQbRMd",
-        "outputId": "d196ae93-472d-4a01-e64b-b76d67b9ebed",
         "colab": {
           "base_uri": "https://localhost:8080/"
-        }
+        },
+        "id": "8dKGs6HQbRMd",
+        "outputId": "d196ae93-472d-4a01-e64b-b76d67b9ebed"
       },
       "execution_count": 32,
       "outputs": [
@@ -183,11 +183,11 @@
         "print(\"Tu indice de masa corporal es de\", imc)\n"
       ],
       "metadata": {
-        "id": "xKvTvMCCcMxg",
-        "outputId": "7901fcb1-5f8a-4010-a2ca-d201456c6073",
         "colab": {
           "base_uri": "https://localhost:8080/"
-        }
+        },
+        "id": "xKvTvMCCcMxg",
+        "outputId": "7901fcb1-5f8a-4010-a2ca-d201456c6073"
       },
       "execution_count": 35,
       "outputs": [
@@ -224,11 +224,11 @@
         "print(\"capital final \" + str(round(cantidad * (interes / 100 + 1) ** años, 2)))"
       ],
       "metadata": {
-        "id": "zVpc-umbjC9F",
-        "outputId": "ff23197e-fde5-4887-859a-b22f375ffcf0",
         "colab": {
           "base_uri": "https://localhost:8080/"
-        }
+        },
+        "id": "zVpc-umbjC9F",
+        "outputId": "ff23197e-fde5-4887-859a-b22f375ffcf0"
       },
       "execution_count": 36,
       "outputs": [
