From 2b6416fddfb07f1e9a9ad8a2e8c06142f18c3ad0 Mon Sep 17 00:00:00 2001 From: Juan Boberg Aguirre Date: Mon, 13 Apr 2026 23:04:30 +0200 Subject: [PATCH 1/2] Update cfu-data-types.ipynb --- cfu-data-types.ipynb | 46 +++++++++++++++++++++++++++++++++++++------- 1 file changed, 39 insertions(+), 7 deletions(-) diff --git a/cfu-data-types.ipynb b/cfu-data-types.ipynb index e0fee02..7ead0ba 100644 --- a/cfu-data-types.ipynb +++ b/cfu-data-types.ipynb @@ -49,11 +49,43 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 17, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "\n", + "\n", + "\n", + "\n", + "Salary_after_expenses: 800.0\n", + "¿Es menor a 500? False\n", + "Tipo: \n" + ] + } + ], "source": [ - "# Your code here\n" + "name = input(\"¿Cómo te llamas?\")\n", + "print(input(\"¿Cómo te llamas?\"))\n", + "print(type(input(\"¿Cómo te llamas?\")))\n", + "\n", + "Age= input(\"¿Cuántos años tienes?\")\n", + "print(input(\"¿Cuántos años tienes?\"))\n", + "print(type(input(\"¿Cuántos años tienes?\")))\n", + "\n", + "Addres= input(\"Introduce tu dirección\")\n", + "print(input(\"Introduce tu dirección\"))\n", + "\n", + "Salary_after_expenses = input(\"¿Cuanto salario ahorras? \")\n", + "Salary_after_expenses_num = float(Salary_after_expenses)\n", + "es_menor_500 = Salary_after_expenses_num < 500\n", + "\n", + "print(\"Salary_after_expenses:\", Salary_after_expenses_num)\n", + "print(\"¿Es menor a 500?\", es_menor_500)\n", + "print(\"Tipo:\", type(es_menor_500))" ] }, { @@ -85,7 +117,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 5, "metadata": {}, "outputs": [], "source": [ @@ -102,7 +134,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 6, "metadata": {}, "outputs": [], "source": [ @@ -112,7 +144,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3 (ipykernel)", + "display_name": "Python 3", "language": "python", "name": "python3" }, @@ -126,7 +158,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.13" + "version": "3.14.4" } }, "nbformat": 4, From ec3dabbb0e3116c6be7c694e355eb2953b170889 Mon Sep 17 00:00:00 2001 From: Juan Boberg Aguirre Date: Mon, 13 Apr 2026 23:07:04 +0200 Subject: [PATCH 2/2] Update cfu-data-types.ipynb --- cfu-data-types.ipynb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cfu-data-types.ipynb b/cfu-data-types.ipynb index 7ead0ba..657d3ee 100644 --- a/cfu-data-types.ipynb +++ b/cfu-data-types.ipynb @@ -112,7 +112,8 @@ "\n", "- *You can use the len() function to get the length of a string.*\n", "- *Search string methods to accomplish the other steps. Recommended External Resources: [Python String Methods](https://www.w3schools.com/python/python_ref_string.asp)*\n", - "- *Use method chaining to simplify your code. If you are not sure what it is, read this tutorial before: https://pyneng.readthedocs.io/en/latest/book/04_data_structures/method_chaining.html*\n" + "- *Use method chaining to simplify your code. If you are not sure what it is, read this tutorial before: https://pyneng.readthedocs.io/en/latest/book/04_data_structures/method_chaining.html*\n", + "." ] }, {