Skip to content

Commit 6d1e638

Browse files
committed
Nuevo Comienzo - Subir todo y que dios reparta suerte
1 parent bdf9601 commit 6d1e638

File tree

10 files changed

+1515
-67
lines changed

10 files changed

+1515
-67
lines changed

PIA/UT01. Introducción a la Programación de Inteligencia Artificial/1_Teoria/00_firsts_steps_with_python.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"name": "python",
7373
"nbconvert_exporter": "python",
7474
"pygments_lexer": "ipython3",
75-
"version": "3.11.7"
75+
"version": "3.11.8"
7676
}
7777
},
7878
"nbformat": 4,

PIA/UT01. Introducción a la Programación de Inteligencia Artificial/1_Teoria/01_Datos_y_Tipos_de_Datos.ipynb

Lines changed: 23 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"id": "PaQOPX2RDbKx"
77
},
88
"source": [
9-
"**Visto**\n",
9+
"# ✅\n",
10+
"\n",
1011
"## **Tipos de Datos Básicos** \n",
1112
"\n",
1213
"### Datos y Tipos de Datos\n",
@@ -30,7 +31,7 @@
3031
},
3132
{
3233
"cell_type": "code",
33-
"execution_count": null,
34+
"execution_count": 2,
3435
"metadata": {
3536
"colab": {
3637
"base_uri": "https://localhost:8080/"
@@ -40,17 +41,15 @@
4041
},
4142
"outputs": [
4243
{
43-
"ename": "",
44-
"evalue": "",
45-
"output_type": "error",
46-
"traceback": [
47-
"\u001b[1;31mLa ejecución de celdas con 'c:\\Users\\Nocturno2324\\AppData\\Local\\Microsoft\\WindowsApps\\python3.11.exe' requiere el paquete ipykernel.\n",
48-
"\u001b[1;31mEjecute el siguiente comando para instalar 'ipykernel' en el entorno de Python. comando \n",
49-
"\u001b[1;31m: 'c:/Users/Nocturno2324/AppData/Local/Microsoft/WindowsApps/python3.11.exe -m pip install ipykernel -U --user --force-reinstall'"
44+
"name": "stdout",
45+
"output_type": "stream",
46+
"text": [
47+
"5\n"
5048
]
5149
}
5250
],
5351
"source": [
52+
"# ❤\n",
5453
"my_var = 5\n",
5554
"\n",
5655
"print(my_var)"
@@ -73,7 +72,7 @@
7372
},
7473
{
7574
"cell_type": "code",
76-
"execution_count": null,
75+
"execution_count": 2,
7776
"metadata": {
7877
"colab": {
7978
"base_uri": "https://localhost:8080/"
@@ -83,17 +82,16 @@
8382
},
8483
"outputs": [
8584
{
86-
"ename": "",
87-
"evalue": "",
88-
"output_type": "error",
89-
"traceback": [
90-
"\u001b[1;31mLa ejecución de celdas con 'c:\\Users\\Nocturno2324\\AppData\\Local\\Microsoft\\WindowsApps\\python3.11.exe' requiere el paquete ipykernel.\n",
91-
"\u001b[1;31mEjecute el siguiente comando para instalar 'ipykernel' en el entorno de Python. comando \n",
92-
"\u001b[1;31m: 'c:/Users/Nocturno2324/AppData/Local/Microsoft/WindowsApps/python3.11.exe -m pip install ipykernel -U --user --force-reinstall'"
85+
"name": "stdout",
86+
"output_type": "stream",
87+
"text": [
88+
"37\n",
89+
"905\n"
9390
]
9491
}
9592
],
9693
"source": [
94+
"# ❤\n",
9795
"a = 30\n",
9896
"b = 5\n",
9997
"\n",
@@ -158,19 +156,9 @@
158156
"cell_type": "code",
159157
"execution_count": null,
160158
"metadata": {},
161-
"outputs": [
162-
{
163-
"ename": "",
164-
"evalue": "",
165-
"output_type": "error",
166-
"traceback": [
167-
"\u001b[1;31mLa ejecución de celdas con 'c:\\Users\\Nocturno2324\\AppData\\Local\\Microsoft\\WindowsApps\\python3.11.exe' requiere el paquete ipykernel.\n",
168-
"\u001b[1;31mEjecute el siguiente comando para instalar 'ipykernel' en el entorno de Python. comando \n",
169-
"\u001b[1;31m: 'c:/Users/Nocturno2324/AppData/Local/Microsoft/WindowsApps/python3.11.exe -m pip install ipykernel -U --user --force-reinstall'"
170-
]
171-
}
172-
],
159+
"outputs": [],
173160
"source": [
161+
"# ❤\n",
174162
"# Operadores de pertenencia\n",
175163
"\n",
176164
"lista = [1 , 2 , 3 , 4 , 5 ]\n",
@@ -193,12 +181,16 @@
193181
"* Tipos númericos\n",
194182
" * Tipo entero (int)\n",
195183
" * Tipo real (float)\n",
184+
"\n",
196185
"* Tipos booleanos (bool)\n",
186+
"\n",
197187
"* Tipo de datos secuencia\n",
198188
" * Tipo lista (list)\n",
199189
" * Tipo tuplas (tuple)\n",
190+
"\n",
200191
"* Tipo de datos cadenas de caracteres\n",
201192
" * Tipo cadena (str)\n",
193+
"\n",
202194
"* Tipo de datos mapas o diccionario (dict)"
203195
]
204196
},
@@ -212,19 +204,9 @@
212204
"id": "yB5Sf_jf8RV-",
213205
"outputId": "a2d9d019-8258-4e99-f092-757f42669d3d"
214206
},
215-
"outputs": [
216-
{
217-
"ename": "",
218-
"evalue": "",
219-
"output_type": "error",
220-
"traceback": [
221-
"\u001b[1;31mLa ejecución de celdas con 'c:\\Users\\Nocturno2324\\AppData\\Local\\Microsoft\\WindowsApps\\python3.11.exe' requiere el paquete ipykernel.\n",
222-
"\u001b[1;31mEjecute el siguiente comando para instalar 'ipykernel' en el entorno de Python. comando \n",
223-
"\u001b[1;31m: 'c:/Users/Nocturno2324/AppData/Local/Microsoft/WindowsApps/python3.11.exe -m pip install ipykernel -U --user --force-reinstall'"
224-
]
225-
}
226-
],
207+
"outputs": [],
227208
"source": [
209+
"# ❤\n",
228210
"print(type(5))\n",
229211
"\n",
230212
"print(type(5.5))\n",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"id": "PaQOPX2RDbKx"
77
},
88
"source": [
9-
"**visto**\n",
9+
"# ✅\n",
1010
"\n",
1111
"## **Estructura de Datos**\n",
1212
"\n",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {
6+
"id": "X2Q3sYvlbzpm"
7+
},
8+
"source": [
9+
"# EJEMPLOS DE CODIGO"
10+
]
11+
},
12+
{
13+
"cell_type": "code",
14+
"execution_count": null,
15+
"metadata": {
16+
"colab": {
17+
"base_uri": "https://localhost:8080/"
18+
},
19+
"id": "90Pbp_fZb4im",
20+
"outputId": "5310e6ce-a30f-4da1-a71c-c3afdc693114"
21+
},
22+
"outputs": [],
23+
"source": [
24+
"# Declaraciones \n",
25+
"my_var = 5\n",
26+
"print(\"Variable : \" , my_var)\n",
27+
"entero = -23\n",
28+
"print(\"Entero : \" , entero)\n",
29+
"reales = 12.3 \n",
30+
"print(\"Reales : \" , reales)\n",
31+
"booleano = True\n",
32+
"print(\"Boleano : \" , booleano)\n",
33+
"literales = 'Hola'\n",
34+
"print(\"Literal 1 : \",literales)\n",
35+
"literales2 = \"Hola\"\n",
36+
"print(\"Literal 2 : \",literales2)\n",
37+
"literales3 = \"\"\"Hola\"\"\"\n",
38+
"print(\"Literal 3 : \",literales3)\n",
39+
"literales4 = '''Hola'''\n",
40+
"print(\"Literal 4 : \",literales4)\n",
41+
"literales5 = \"\"\"Salto de linea \\n para cambiar de linea\"\"\"\n",
42+
"print(literales5)"
43+
]
44+
},
45+
{
46+
"cell_type": "markdown",
47+
"metadata": {},
48+
"source": [
49+
"## Salidas por consola"
50+
]
51+
},
52+
{
53+
"cell_type": "code",
54+
"execution_count": null,
55+
"metadata": {},
56+
"outputs": [],
57+
"source": [
58+
"# Imprimir cadena de texto\n",
59+
"print(\"Hola , mundo!\")\n",
60+
"\n",
61+
"# Imprimir variables\n",
62+
"nombre = \"Juan\"\n",
63+
"edad = 25\n",
64+
"print(\"Nombre: \" , nombre , \"Edad : \" , edad)\n",
65+
"\n",
66+
"# Imprimir resultados de operaciones\n",
67+
"a = 3 \n",
68+
"b = 5\n",
69+
"suma = a + b\n",
70+
"print(\"La suma de : \" , a , \" y \" , b , \" es: \" , suma)\n",
71+
"\n",
72+
"# Formateo de cadenas con el metodo '.format()'\n",
73+
"nombre = \"Ana\"\n",
74+
"edad = 30\n",
75+
"print(\"Nombre: {} , Edad: {} \".format(nombre,edad))\n",
76+
"\n",
77+
"pais = \"España\"\n",
78+
"poblacion = 48000000\n",
79+
"print(\"Pais: {} , Poblacion: {} \".format(pais,poblacion))\n",
80+
"\n",
81+
"# Formateo de cadenas con 'f'\n",
82+
"nombre = \"Maria\" \n",
83+
"edad = 22\n",
84+
"print(f\"Nombre: {nombre} , edad: {edad}\")\n",
85+
"\n",
86+
"nom1 = \"Black\"\n",
87+
"nom2 = \"Metal\"\n",
88+
"print(f\"Estilo: {nom1} {nom2}\") \n",
89+
"\n",
90+
"# Salto de linea\n",
91+
"print(\"Linea 1\\nLinea 2\\nLinea 3\")\n",
92+
"\n",
93+
"# Tabular texto\n",
94+
"print(\"\"\"\n",
95+
" Formateo de texto\n",
96+
" \"\"\")\n",
97+
"\n",
98+
"# Uso de argumentos en la función print:\n",
99+
"# sep = SEPARADOR\n",
100+
"# end = FINAL DE LA IMPRESION\n",
101+
"print(\"Hola\" , \"Mundo\" , sep=\"<>\")\n",
102+
"print(\"Hola\" , \"Mundo\" , sep=\"<>\" , end=\"!!!\\n\")\n",
103+
"print(\"Hola\" , \"Mundo\" , sep=\"||\" , end=\"|\\n\")\n",
104+
"# Array\n",
105+
"numeros = [1 , 2 ,3 , 4 , 5]\n",
106+
"print(\"Salida normal array: \" , numeros)\n",
107+
"print(\"Salida formateada: \")\n",
108+
"print(*numeros, sep=\", \")\n",
109+
"print(*numeros, sep=\" <-> \")\n",
110+
"print(*numeros, end=\" <-- \")"
111+
]
112+
}
113+
],
114+
"metadata": {
115+
"colab": {
116+
"provenance": []
117+
},
118+
"kernelspec": {
119+
"display_name": "Python 3",
120+
"name": "python3"
121+
},
122+
"language_info": {
123+
"codemirror_mode": {
124+
"name": "ipython",
125+
"version": 3
126+
},
127+
"file_extension": ".py",
128+
"mimetype": "text/x-python",
129+
"name": "python",
130+
"nbconvert_exporter": "python",
131+
"pygments_lexer": "ipython3",
132+
"version": "3.11.7"
133+
}
134+
},
135+
"nbformat": 4,
136+
"nbformat_minor": 0
137+
}

0 commit comments

Comments
 (0)