diff --git a/.DS_Store b/.DS_Store index bed10e1..b818527 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/LabSO/.DS_Store b/LabSO/.DS_Store index 81ecb28..dca7deb 100644 Binary files a/LabSO/.DS_Store and b/LabSO/.DS_Store differ diff --git a/LabSO/lab-so/.DS_Store b/LabSO/lab-so/.DS_Store new file mode 100644 index 0000000..0839aaa Binary files /dev/null and b/LabSO/lab-so/.DS_Store differ diff --git a/Programación/.DS_Store b/Programación/.DS_Store new file mode 100644 index 0000000..f6a4da2 Binary files /dev/null and b/Programación/.DS_Store differ 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 +}