From b555511a90cc02c1a33306fe170f73faae8df90a Mon Sep 17 00:00:00 2001 From: Juanposo Date: Mon, 13 Oct 2025 16:41:46 -0300 Subject: [PATCH] agreganding --- .DS_Store | Bin 8196 -> 10244 bytes Programación/.DS_Store | Bin 0 -> 6148 bytes .../Clase 2 Python JP-checkpoint.ipynb | 324 ++++++++++++++++++ .../Untitled-checkpoint.ipynb | 6 + Programación/Jupyter/Clase 2 Python JP.ipynb | 324 ++++++++++++++++++ Programación/Jupyter/Untitled.ipynb | 6 + 6 files changed, 660 insertions(+) create mode 100644 Programación/.DS_Store create mode 100644 Programación/Jupyter/.ipynb_checkpoints/Clase 2 Python JP-checkpoint.ipynb create mode 100644 Programación/Jupyter/.ipynb_checkpoints/Untitled-checkpoint.ipynb create mode 100644 Programación/Jupyter/Clase 2 Python JP.ipynb create mode 100644 Programación/Jupyter/Untitled.ipynb diff --git a/.DS_Store b/.DS_Store index bed10e195d7bd8967e5e15b03c3db5a6de484239..b8185276180b80b830ccce1a7484f5d77c743211 100644 GIT binary patch delta 524 zcmZp1XbF&DU|?W$DortDU{C-uIe-{M3-C-V6q~50C@Ko%Far4uo;mr+NjdpRAjyq| z)7U3A@NQ=3VBx3-sbFEyV@PMnWGF#a1=Oenl+*hU20#{)x}0>w;N<+=0`viQMm>H)e zPv#SrVoUTC>^ln(r2~D#2nj<^L1u6eFeq>X xX;)CdZ!G-IJegl6P=pB*9U347z$h>P(US{gdM6(i@Fd@1VrUKnnaax$00191dCdR- delta 207 zcmZn(XmOBWU|?W$DortDU;r^WfEYvza8E20o2aKK%nOnS@);QXJ#+GtlXCKtHXBMT zW#7!s!NS4FJ9&*j=;Zk#t2eI^{LjeDEZs19ov;*}h3wX-H{O%a3CqBkAB1I@*gs6> z7b%_`BhJUfz%coOxZLC}aURxpYc>}jnS54Uaq=D{o<2y)M3sV#6~fGd%s@8)fdn^@ ca0R(-W8rt^$^0sT96*v#y1}g&|>0&7&ZHnncv&@F*EPC-I)#mkX)^t0Z;%S zj*Vfg8@pqK`B`g|4ryUd!p8`~0)N(_CDUn(jtmh45d(i41MJ)Ff;&(H4|d?t_e)Lm zux%lS?aDqE)Y_uWdf=H3kA7`>jva*Kp5C;%K^{Tg(HDdR7Q4pC$iZwHItp# z8&h{PnQQoPee%ZMULu}KU%k0d+;plgeZm(G1UD%zy%L-76qObd?9!Gji+pUB^+i!+ zVev$F&zat{eMrHHnB;+h4?5#pmb+Z>?eg6EdSHcxL;4b%t>jb3 znWupr+SFZI;j@QUb=F;{I3ruZoX1?jJn4WQ`c)p~&xOzUqr|JP9N~ zrR7ySm5g4ZRZoOuzP3kHX+AH1BoB_5!sMr{45*q^f)`1F1+%0Q=h zRM`1{``7pXqe;lArLJn(H{X$L)1kK{80ve0>Yg8umAu6 literal 0 HcmV?d00001 diff --git a/Programación/Jupyter/.ipynb_checkpoints/Clase 2 Python JP-checkpoint.ipynb b/Programación/Jupyter/.ipynb_checkpoints/Clase 2 Python JP-checkpoint.ipynb new file mode 100644 index 0000000..e00ac77 --- /dev/null +++ b/Programación/Jupyter/.ipynb_checkpoints/Clase 2 Python JP-checkpoint.ipynb @@ -0,0 +1,324 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 4, + "id": "6a3952f4-113d-459e-bd5e-9d9a472eef2e", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "1\n", + "2\n", + "3\n", + "4\n", + "5\n", + "6\n", + "7\n", + "8\n", + "9\n", + "10\n" + ] + } + ], + "source": [ + "contador = 0\n", + "while(contador<10):\n", + " contador = contador + 1\n", + " print(contador)" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "id": "528f216f-e889-4fe0-94a2-92ecc6184837", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "0\n", + "2\n", + "4\n", + "6\n", + "8\n", + "10\n", + "12\n", + "14\n", + "16\n", + "18\n", + "20\n" + ] + } + ], + "source": [ + "n = 0\n", + "while(n<21):\n", + " # El símbolo % indica el resto, por lo que el código de abajo\n", + " # Dice que si el resto es igual a 0, que se imprima n\n", + " if n % 2 == 0:\n", + " print(n)\n", + " n = n + 1" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "id": "f7c85501-d04f-4b80-b182-78f55f83f98d", + "metadata": {}, + "outputs": [ + { + "name": "stdin", + "output_type": "stream", + "text": [ + "Indica un número -8\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Que sea positivo po, como que -8\n" + ] + } + ], + "source": [ + "n = 1\n", + "while n>=0:\n", + " n = int(input(\"Indica un número\"))\n", + " if n>=0:\n", + " n=int(input(\"Indica otro número\"))\n", + " else:\n", + " print(\"Que sea positivo po, como que\", n)" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "id": "4798afff-997e-4227-94d6-3b4fbebbc829", + "metadata": {}, + "outputs": [ + { + "name": "stdin", + "output_type": "stream", + "text": [ + "Indica un número y te muestro todos los que vienen hasta el 0 (ten piedad porfa) -12\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "-12\n", + "-11\n", + "-10\n", + "-9\n", + "-8\n", + "-7\n", + "-6\n", + "-5\n", + "-4\n", + "-3\n", + "-2\n", + "-1\n" + ] + } + ], + "source": [ + "n = int(input(\"Indica un número y te muestro todos los que vienen hasta el 0 (ten piedad porfa)\"))\n", + "while n!=0:\n", + " if n>=0:\n", + " print(n)\n", + " n-=1\n", + " else:\n", + " print(n)\n", + " n+=1" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "id": "4b579bc3-154d-41e3-a9bc-5a9cf7139f88", + "metadata": {}, + "outputs": [ + { + "name": "stdin", + "output_type": "stream", + "text": [ + "Indique un número 20934\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Es un Positivo\n" + ] + }, + { + "name": "stdin", + "output_type": "stream", + "text": [ + "Indique un número -234\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Es un Negativo\n" + ] + }, + { + "name": "stdin", + "output_type": "stream", + "text": [ + "Indique un número 0\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Ponte más creativo\n" + ] + }, + { + "name": "stdin", + "output_type": "stream", + "text": [ + "Indique un número 999\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "chao\n" + ] + } + ], + "source": [ + "n = 0\n", + "while n!=999:\n", + " n = int(input(\"Indique un número\"))\n", + " if n==0:\n", + " print(\"Ponte más creativo\")\n", + " elif n==999:\n", + " print(\"chao\")\n", + " break\n", + " elif n>=0:\n", + " print(\"Es un Positivo\")\n", + " else:\n", + " print(\"Es un Negativo\")" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "id": "43ea7d1e-4a41-4c68-a013-f5fedb2b6293", + "metadata": { + "scrolled": true + }, + "outputs": [ + { + "name": "stdin", + "output_type": "stream", + "text": [ + "Indique un número 34\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "34 X 1 = 34\n", + "34 X 2 = 68\n", + "34 X 3 = 102\n", + "34 X 4 = 136\n", + "34 X 5 = 170\n", + "34 X 6 = 204\n", + "34 X 7 = 238\n", + "34 X 8 = 272\n", + "34 X 9 = 306\n", + "34 X 10 = 340\n" + ] + } + ], + "source": [ + "i = 1\n", + "n = int(input(\"Indique un número\"))\n", + "while i<=10:\n", + " print(n,\"X\", i, \"=\", n*i)\n", + " i = i+1" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "id": "5bc2c811-95bf-42f5-a098-2dd6310f9c77", + "metadata": {}, + "outputs": [ + { + "name": "stdin", + "output_type": "stream", + "text": [ + "Cuantas notas tienes? 4\n", + "Ingresa tu nota 30\n", + "Ingresa tu nota 60\n", + "Ingresa tu nota 60\n", + "Ingresa tu nota 70\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Tu promedio es = 55.0\n" + ] + } + ], + "source": [ + "n = int(input(\"Cuantas notas tienes?\"))\n", + "c=1\n", + "notas=0\n", + "while c<=n:\n", + " c = c + 1\n", + " notas = notas + int(input(\"Ingresa tu nota\"))\n", + "print(\"Tu promedio es =\", notas/n) " + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "32ca8e36-99ea-4c97-868c-f7b977715b10", + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "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.13.7" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/Programación/Jupyter/.ipynb_checkpoints/Untitled-checkpoint.ipynb b/Programación/Jupyter/.ipynb_checkpoints/Untitled-checkpoint.ipynb new file mode 100644 index 0000000..363fcab --- /dev/null +++ b/Programación/Jupyter/.ipynb_checkpoints/Untitled-checkpoint.ipynb @@ -0,0 +1,6 @@ +{ + "cells": [], + "metadata": {}, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/Programación/Jupyter/Clase 2 Python JP.ipynb b/Programación/Jupyter/Clase 2 Python JP.ipynb new file mode 100644 index 0000000..e00ac77 --- /dev/null +++ b/Programación/Jupyter/Clase 2 Python JP.ipynb @@ -0,0 +1,324 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 4, + "id": "6a3952f4-113d-459e-bd5e-9d9a472eef2e", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "1\n", + "2\n", + "3\n", + "4\n", + "5\n", + "6\n", + "7\n", + "8\n", + "9\n", + "10\n" + ] + } + ], + "source": [ + "contador = 0\n", + "while(contador<10):\n", + " contador = contador + 1\n", + " print(contador)" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "id": "528f216f-e889-4fe0-94a2-92ecc6184837", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "0\n", + "2\n", + "4\n", + "6\n", + "8\n", + "10\n", + "12\n", + "14\n", + "16\n", + "18\n", + "20\n" + ] + } + ], + "source": [ + "n = 0\n", + "while(n<21):\n", + " # El símbolo % indica el resto, por lo que el código de abajo\n", + " # Dice que si el resto es igual a 0, que se imprima n\n", + " if n % 2 == 0:\n", + " print(n)\n", + " n = n + 1" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "id": "f7c85501-d04f-4b80-b182-78f55f83f98d", + "metadata": {}, + "outputs": [ + { + "name": "stdin", + "output_type": "stream", + "text": [ + "Indica un número -8\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Que sea positivo po, como que -8\n" + ] + } + ], + "source": [ + "n = 1\n", + "while n>=0:\n", + " n = int(input(\"Indica un número\"))\n", + " if n>=0:\n", + " n=int(input(\"Indica otro número\"))\n", + " else:\n", + " print(\"Que sea positivo po, como que\", n)" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "id": "4798afff-997e-4227-94d6-3b4fbebbc829", + "metadata": {}, + "outputs": [ + { + "name": "stdin", + "output_type": "stream", + "text": [ + "Indica un número y te muestro todos los que vienen hasta el 0 (ten piedad porfa) -12\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "-12\n", + "-11\n", + "-10\n", + "-9\n", + "-8\n", + "-7\n", + "-6\n", + "-5\n", + "-4\n", + "-3\n", + "-2\n", + "-1\n" + ] + } + ], + "source": [ + "n = int(input(\"Indica un número y te muestro todos los que vienen hasta el 0 (ten piedad porfa)\"))\n", + "while n!=0:\n", + " if n>=0:\n", + " print(n)\n", + " n-=1\n", + " else:\n", + " print(n)\n", + " n+=1" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "id": "4b579bc3-154d-41e3-a9bc-5a9cf7139f88", + "metadata": {}, + "outputs": [ + { + "name": "stdin", + "output_type": "stream", + "text": [ + "Indique un número 20934\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Es un Positivo\n" + ] + }, + { + "name": "stdin", + "output_type": "stream", + "text": [ + "Indique un número -234\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Es un Negativo\n" + ] + }, + { + "name": "stdin", + "output_type": "stream", + "text": [ + "Indique un número 0\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Ponte más creativo\n" + ] + }, + { + "name": "stdin", + "output_type": "stream", + "text": [ + "Indique un número 999\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "chao\n" + ] + } + ], + "source": [ + "n = 0\n", + "while n!=999:\n", + " n = int(input(\"Indique un número\"))\n", + " if n==0:\n", + " print(\"Ponte más creativo\")\n", + " elif n==999:\n", + " print(\"chao\")\n", + " break\n", + " elif n>=0:\n", + " print(\"Es un Positivo\")\n", + " else:\n", + " print(\"Es un Negativo\")" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "id": "43ea7d1e-4a41-4c68-a013-f5fedb2b6293", + "metadata": { + "scrolled": true + }, + "outputs": [ + { + "name": "stdin", + "output_type": "stream", + "text": [ + "Indique un número 34\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "34 X 1 = 34\n", + "34 X 2 = 68\n", + "34 X 3 = 102\n", + "34 X 4 = 136\n", + "34 X 5 = 170\n", + "34 X 6 = 204\n", + "34 X 7 = 238\n", + "34 X 8 = 272\n", + "34 X 9 = 306\n", + "34 X 10 = 340\n" + ] + } + ], + "source": [ + "i = 1\n", + "n = int(input(\"Indique un número\"))\n", + "while i<=10:\n", + " print(n,\"X\", i, \"=\", n*i)\n", + " i = i+1" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "id": "5bc2c811-95bf-42f5-a098-2dd6310f9c77", + "metadata": {}, + "outputs": [ + { + "name": "stdin", + "output_type": "stream", + "text": [ + "Cuantas notas tienes? 4\n", + "Ingresa tu nota 30\n", + "Ingresa tu nota 60\n", + "Ingresa tu nota 60\n", + "Ingresa tu nota 70\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Tu promedio es = 55.0\n" + ] + } + ], + "source": [ + "n = int(input(\"Cuantas notas tienes?\"))\n", + "c=1\n", + "notas=0\n", + "while c<=n:\n", + " c = c + 1\n", + " notas = notas + int(input(\"Ingresa tu nota\"))\n", + "print(\"Tu promedio es =\", notas/n) " + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "32ca8e36-99ea-4c97-868c-f7b977715b10", + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "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.13.7" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/Programación/Jupyter/Untitled.ipynb b/Programación/Jupyter/Untitled.ipynb new file mode 100644 index 0000000..363fcab --- /dev/null +++ b/Programación/Jupyter/Untitled.ipynb @@ -0,0 +1,6 @@ +{ + "cells": [], + "metadata": {}, + "nbformat": 4, + "nbformat_minor": 5 +}