|
1 | 1 | { |
2 | | - "title": "Operaciones matemáticas y con texto", |
| 2 | + "title": "Operaciones Matemáticas y Con Texto", |
3 | 3 | "description": "", |
4 | 4 | "content": [ |
5 | 5 | { |
|
8 | 8 | }, |
9 | 9 | { |
10 | 10 | "type": "subtitle1", |
11 | | - "text": "Operaciones matemáticas básicas" |
| 11 | + "text": "Operaciones Matemáticas Básicas" |
12 | 12 | }, |
13 | 13 | { |
14 | 14 | "type": "paragraph", |
|
89 | 89 | }, |
90 | 90 | { |
91 | 91 | "type": "subtitle1", |
92 | | - "text": "Operaciones con texto (strings)" |
| 92 | + "text": "Operaciones Con Texto (Strings)" |
93 | 93 | }, |
94 | 94 | { |
95 | 95 | "type": "paragraph", |
96 | 96 | "text": "Python permite manipular cadenas usando operadores especiales como:" |
97 | 97 | }, |
98 | 98 | { |
99 | 99 | "type": "subtitle2", |
100 | | - "text": "Concatenación (unir texto) → operador <code class=\"language-python\">+</code>" |
| 100 | + "text": "Concatenación (Unir Texto) → Operador <code class=\"language-python\">+</code>" |
101 | 101 | }, |
102 | 102 | { |
103 | 103 | "type": "code", |
|
110 | 110 | }, |
111 | 111 | { |
112 | 112 | "type": "subtitle2", |
113 | | - "text": "Repetición de texto → operador <code class=\"language-python\">*</code>" |
| 113 | + "text": "Repetición de Texto → Operador <code class=\"language-python\">*</code>" |
114 | 114 | }, |
115 | 115 | { |
116 | 116 | "type": "code", |
117 | 117 | "text": "print(\"Hola \" * 3)" |
118 | 118 | }, |
119 | 119 | { |
120 | 120 | "type": "paragraph", |
121 | | - "text": "Salida" |
| 121 | + "text": "Salida:" |
122 | 122 | }, |
123 | 123 | { |
124 | 124 | "type": "code", |
|
135 | 135 | }, |
136 | 136 | { |
137 | 137 | "type": "subtitle2", |
138 | | - "text": "Combinando texto y números" |
| 138 | + "text": "Combinando Texto y Números" |
139 | 139 | }, |
140 | 140 | { |
141 | 141 | "type": "paragraph", |
|
151 | 151 | }, |
152 | 152 | { |
153 | 153 | "type": "test-button", |
154 | | - "text": "Probar error >>", |
| 154 | + "text": "Probar Error >>", |
155 | 155 | "code": "print(\"Edad: \" + 25)" |
156 | 156 | }, |
157 | 157 | { |
|
169 | 169 | }, |
170 | 170 | { |
171 | 171 | "type": "subtitle1", |
172 | | - "text": "Reglas importantes" |
| 172 | + "text": "Reglas Importantes" |
173 | 173 | }, |
174 | 174 | { |
175 | 175 | "type": "list", |
176 | 176 | "items": [ |
177 | | - "Las operaciones numéricas solo funcionan con números", |
178 | | - "Las operaciones de texto solo funcionan con texto", |
179 | | - "Si mezclas números y texto → debes convertir uno al tipo del otro" |
| 177 | + "Las operaciones numéricas solo funcionan con números.", |
| 178 | + "Las operaciones de texto solo funcionan con texto.", |
| 179 | + "Si mezclas números y texto → debes convertir uno al tipo del otro." |
180 | 180 | ] |
181 | 181 | }, |
182 | 182 | { |
183 | 183 | "type": "paragraph", |
184 | | - "text": "Ejemplo" |
| 184 | + "text": "Ejemplo:" |
185 | 185 | }, |
186 | 186 | { |
187 | 187 | "type": "code", |
|
194 | 194 | }, |
195 | 195 | { |
196 | 196 | "type": "subtitle1", |
197 | | - "text": "Ejemplos combinados" |
| 197 | + "text": "Ejemplos Combinados" |
198 | 198 | }, |
199 | 199 | { |
200 | 200 | "type": "paragraph", |
|
219 | 219 | }, |
220 | 220 | { |
221 | 221 | "type": "subtitle1", |
222 | | - "text": "Buenas prácticas" |
| 222 | + "text": "Buenas Prácticas" |
223 | 223 | }, |
224 | 224 | { |
225 | 225 | "type": "paragraph", |
|
260 | 260 | }, |
261 | 261 | { |
262 | 262 | "type": "subtitle1", |
263 | | - "text": "Ejercicios para practicar" |
| 263 | + "text": "Ejercicios Para Practicar" |
264 | 264 | }, |
265 | 265 | { |
266 | 266 | "type": "subtitle2", |
267 | | - "text": "Ejercicio 1: Calculadora básica" |
| 267 | + "text": "Ejercicio 1: Calculadora Básica" |
268 | 268 | }, |
269 | 269 | { |
270 | 270 | "type": "paragraph", |
|
277 | 277 | { |
278 | 278 | "type": "list", |
279 | 279 | "items": [ |
280 | | - "La suma de los tres", |
281 | | - "El promedio", |
282 | | - "El resultado de <code class=\"language-python\">a * c</code>" |
| 280 | + "La suma de los tres.", |
| 281 | + "El promedio.", |
| 282 | + "El resultado de <code class=\"language-python\">a * c</code>." |
283 | 283 | ] |
284 | 284 | }, |
285 | 285 | { |
|
297 | 297 | }, |
298 | 298 | { |
299 | 299 | "type": "test-button", |
300 | | - "text": "Probar solución >>", |
| 300 | + "text": "Probar Solución >>", |
301 | 301 | "code": "a = 10\nb = 20\nc = 5\n\nsuma = a + b + c\npromedio = suma / 3\nproducto = a * c\n\nprint(\"Suma:\", suma)\nprint(\"Promedio:\", promedio)\nprint(\"Producto:\", producto)" |
302 | 302 | } |
303 | 303 | ] |
304 | 304 | }, |
305 | 305 | { |
306 | 306 | "type": "subtitle2", |
307 | | - "text": "Ejercicio 2: Concatenación de texto" |
| 307 | + "text": "Ejercicio 2: Concatenación de Texto" |
308 | 308 | }, |
309 | 309 | { |
310 | 310 | "type": "paragraph", |
|
317 | 317 | { |
318 | 318 | "type": "test-button", |
319 | 319 | "text": "Practicar >>", |
320 | | - "code": "# Une las siguientes partes para formar una única frase (Muéstrala en pantalla):\n# parte1 = \"Python \"\n# parte2 = \"es \"\n# parte3 = \"genial\"" |
| 320 | + "code": "# Une las siguientes partes para formar una única\n# frase (Muéstrala en pantalla):\n# parte1 = \"Python \"\n# parte2 = \"es \"\n# parte3 = \"genial\"" |
321 | 321 | }, |
322 | 322 | { |
323 | 323 | "type": "collapsible", |
|
329 | 329 | }, |
330 | 330 | { |
331 | 331 | "type": "test-button", |
332 | | - "text": "Probar solución >>", |
| 332 | + "text": "Probar Solución >>", |
333 | 333 | "code": "parte1 = \"Python \"\nparte2 = \"es \"\nparte3 = \"genial\"\n\nfrase = parte1 + parte2 + parte3\nprint(frase)" |
334 | 334 | } |
335 | 335 | ] |
336 | 336 | }, |
337 | 337 | { |
338 | 338 | "type": "subtitle2", |
339 | | - "text": "Ejercicio 3: Repetición de cadenas" |
| 339 | + "text": "Ejercicio 3: Repetición de Cadenas" |
340 | 340 | }, |
341 | 341 | { |
342 | 342 | "type": "paragraph", |
|
345 | 345 | { |
346 | 346 | "type": "test-button", |
347 | 347 | "text": "Practicar >>", |
348 | | - "code": "# Crea una variable que contenga un símbolo (por ejemplo \"*\")\n# y repítelo 20 veces (Muéstralo en pantalla)" |
| 348 | + "code": "# Crea una variable que contenga un símbolo\n# (por ejemplo \"*\") y repítelo 20 veces\n# (Muéstralo en pantalla)" |
349 | 349 | }, |
350 | 350 | { |
351 | 351 | "type": "collapsible", |
|
357 | 357 | }, |
358 | 358 | { |
359 | 359 | "type": "test-button", |
360 | | - "text": "Probar solución >>", |
| 360 | + "text": "Probar Solución >>", |
361 | 361 | "code": "simbolo = \"*\"\nprint(simbolo * 20)" |
362 | 362 | } |
363 | 363 | ] |
364 | 364 | }, |
365 | 365 | { |
366 | 366 | "type": "subtitle2", |
367 | | - "text": "Ejercicio 4: Convertir antes de sumar" |
| 367 | + "text": "Ejercicio 4: Convertir Antes de Sumar" |
368 | 368 | }, |
369 | 369 | { |
370 | 370 | "type": "paragraph", |
|
381 | 381 | { |
382 | 382 | "type": "test-button", |
383 | 383 | "text": "Practicar >>", |
384 | | - "code": "# Tienes un número almacenado como texto:\n# numero = \"40\"\n# Convierte el número a entero y súmale 7.\n# Por último, muestra el resultado en pantalla." |
| 384 | + "code": "# Tienes un número almacenado como texto:\n# numero = \"40\"\n# Convierte el número a entero y súmale 7.\n# Por último, muestra el resultado en pantalla" |
385 | 385 | }, |
386 | 386 | { |
387 | 387 | "type": "collapsible", |
|
393 | 393 | }, |
394 | 394 | { |
395 | 395 | "type": "test-button", |
396 | | - "text": "Probar solución >>", |
| 396 | + "text": "Probar Solución >>", |
397 | 397 | "code": "numero = \"40\"\nnumero = int(numero)\nprint(numero + 7)" |
398 | 398 | } |
399 | 399 | ] |
400 | 400 | }, |
401 | 401 | { |
402 | 402 | "type": "subtitle2", |
403 | | - "text": "Ejercicio 5: Mensaje final combinado" |
| 403 | + "text": "Ejercicio 5: Mensaje Final Combinado" |
404 | 404 | }, |
405 | 405 | { |
406 | 406 | "type": "paragraph", |
|
437 | 437 | }, |
438 | 438 | { |
439 | 439 | "type": "test-button", |
440 | | - "text": "Probar solución >>", |
| 440 | + "text": "Probar Solución >>", |
441 | 441 | "code": "nombre = \"Linus\"\nedad = 55\n\nmensaje = nombre + \" tiene \" + str(edad) + \" años\"\nprint(mensaje)" |
442 | 442 | } |
443 | 443 | ] |
444 | 444 | }, |
445 | 445 | { |
446 | 446 | "type": "subtitle1", |
447 | | - "text": "Conclusión del tema" |
| 447 | + "text": "Conclusiones de la Unidad" |
448 | 448 | }, |
449 | 449 | { |
450 | 450 | "type": "paragraph", |
|
453 | 453 | { |
454 | 454 | "type": "list", |
455 | 455 | "items": [ |
456 | | - "Que Python puede hacer operaciones matemáticas básicas con <code class=\"language-python\">+</code>, <code class=\"language-python\">-</code>, <code class=\"language-python\">*</code>, <code class=\"language-python\">/</code>, <code class=\"language-python\">%</code>, <code class=\"language-python\">//</code> y <code class=\"language-python\">**</code>", |
457 | | - "Que las cadenas de texto se pueden unir con <code class=\"language-python\">+</code> y repetir con <code class=\"language-python\">*</code>", |
458 | | - "Que las operaciones con cadenas siguen reglas propias (por ejemplo, sumar textos = concatenar)", |
459 | | - "Que es importante entender el tipo de dato para evitar errores y escribir código más claro" |
| 456 | + "Que Python puede hacer operaciones matemáticas básicas con <code class=\"language-python\">+</code>, <code class=\"language-python\">-</code>, <code class=\"language-python\">*</code>, <code class=\"language-python\">/</code>, <code class=\"language-python\">%</code>, <code class=\"language-python\">//</code> y <code class=\"language-python\">**</code>.", |
| 457 | + "Que las cadenas de texto se pueden unir con <code class=\"language-python\">+</code> y repetir con <code class=\"language-python\">*</code>.", |
| 458 | + "Que las operaciones con cadenas siguen reglas propias (por ejemplo, sumar textos = concatenar).", |
| 459 | + "Que es importante entender el tipo de dato para evitar errores y escribir código más claro." |
460 | 460 | ] |
461 | 461 | } |
462 | 462 | ] |
|
0 commit comments