File tree

43 files changed

+428
-23
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searcx below for content that may be hidden.

43 files changed

+428
-23
lines changed
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
!.gitpod.Dockerfile
77
!bc.json
88
!README.md
9+
!README.*.md
910

1011
!/exercises
1112
!/exercises/*
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ Thanks goes to these wonderful people ([emoji key](https://.com/kentcdodds
7070

7171
1. [Alejandro Sanchez (alesanchezr)](https://.com/alesanchezr), contribution: (coder) :computer: (idea) 🤔, (build-tests) :warning:, (pull-request-review) :eyes: (build-tutorial) :white_check_mark: (documentation) :book:
7272
2. [Paolo (plucodev)](https://.com/plucodev), contribution: (bug reports) :bug:, contribution: (coder), (translation) :earth_americas:
73+
3. [Marco Gómez (marcogonzalo)](https://.com/marcogonzalo), contribution: (bug reports) :bug:, (translation) :earth_africa:
7374

7475
This project follows the
7576
[all-contributors](https://.com/kentcdodds/all-contributors)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Bienvenid@ a Python!
2+
3+
¡¡Nos estusiasma mucho tenerte aquí!! 🎉 😂
4+
Presiona `Next` `Next →` de arriba a la derecha cuando quieras empezar.
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
# Welcome to Python!
1+
# Welcome to Python!
2+
3+
We are very excited to have you here !! 🎉 😂
4+
Click `next` on the top right of this instructions when you are ready to start.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# `02` Hola, Mundo
2+
3+
En Python, usamos `print` para hacer que el computador escriba cualquier cosa que queramos (el contenido de una variable, un texto dado, etc.) in algo llamado `la consola`.
4+
5+
Cada idioma tiene funciones para integrarse con la consola, ya que al principio era la única forma de interactuar con los usuarios (antes de que llegara Windows o MacOS o Linux). Hoy en día, la impresión en la consola se utiliza sobre todo como herramienta de monitorización, ideal para dejar un rastro del contenido de las variables durante la ejecución del programa.
6+
7+
Este es un ejemplo de cómo usarlo:
8+
```py
9+
print("How are you?")
10+
```
11+
12+
## 📝 Instrucciones:
13+
14+
Usa la función `print()` para escribir "Hello World!" en la consola. Siéntete libre de intentar otras cosas también.
15+
16+
## 💡 Información adicional:
17+
18+
Video de 5 minutos sobre la consola:
19+
https://www.youtube.com/watch?v=vROGBvX_MHQ
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ This is an example of how to use it:
99
print("How are you?")
1010
```
1111

12-
📝 Instructions:
12+
## 📝 Instructions:
1313

1414
```md
1515
Use the `print()` function to print `"Hello World"` on the console. Feel free to try other things as well.
1616
```
1717

18-
💡 Additional info:
18+
## 💡 Additional info:
19+
1920
5 minutes video about the console:
2021
https://www.youtube.com/watch?v=1RlkftxAo-M
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# `03` Sum of three numbers
2+
3+
## 📝 Instrucciones:
4+
5+
**Planteamiento**
6+
Obteniendo tres números de la entrada, imprime su suma. Cada número es dado en una línea aparte.
7+
8+
**Ejemplo de entrada**
9+
- 2
10+
- 3
11+
- 6
12+
13+
**Ejemplo de salida**
14+
- 11
15+
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `03` Sum of three numbers
22

3-
📝 Instructions:
3+
## 📝 Instructions:
44

55
**Statement**
66
Taking 3 numbers from the input, print their sum. Every number is given on a separate line.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# `04` Área de un triángulo rectángulo
2+
3+
## 📝 Instrucciones:
4+
5+
Escribe un programa que lea la longitud de la base y la altura de un triángulo rectángulo e imprima su área. Cada número es dado en una línea por separado.
6+
7+
![Imagen descriptiva](http://i.imgur.com/6EkzVxA.jpg)
8+
9+
**Ejemplo de entrada**
10+
* 3
11+
* 5
12+
13+
**Ejemplo de salida**
14+
* 7.5
15+
16+
**Teoría**
17+
18+
Si no sabes cómo empezar la solución a este problema, por favor, revisa la teoría en esta lección:
19+
https://snakify.org/lessons/print_input_numbers/
20+
21+
También puedes intentar paso a paso con trozos de la teoría:
22+
https://snakify.org/lessons/print_input_numbers/steps/1/
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `04` Area of right triangle
22

3-
📝 Instructions:
3+
## 📝 Instructions:
44

55
Write a program that reads the length of the base and the height of a right-angled triangle and prints the area. Every number is given on a separate line.
66

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# `05` Hola Harry
2+
3+
## 📝 Instrucciones:
4+
5+
Escribe un programa que salude al usuario imprimiendo la palabra "Hola", una coma, el nombre del usuario y un signo de exclamación después de él. Ve los ejemplos a continuación.
6+
7+
**Advertencia.** La salida de tu programa debe coincidir estrictamente con la deseada, caracter por caracter. No debe haber ningún espacio entre el nombre y el signo de exclamación. Puedes usar el operador + para concatenar dos cadenas de texto. Ve la lección para más detalles.
8+
9+
**Ejemplo de entrada**
10+
* Harry
11+
12+
**Ejemplo de salida**
13+
* Hello, Harry!
14+
15+
**Teoría**
16+
Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección:
17+
https://snakify.org/lessons/print_input_numbers/
18+
19+
También puedes intentar paso a paso con trozos de la teoría:
20+
https://snakify.org/lessons/print_input_numbers/steps/1/
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `05` Hello Harry
22

3-
📝 Instructions:
3+
## 📝 Instructions:
44

55
Write a program that greets the user by printing the word "Hello", a comma, the name of the user and an exclamation mark after it. See the examples below.
66

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# `06` Anterior y siguiente
2+
3+
## 📝 Instrucciones:
4+
5+
Escribe un programa que lea un número entero y devuelva sus números anteriores y siguientes. Ve el ejemplo a continuación.
6+
7+
**Ejemplo de entrada**
8+
* 179
9+
10+
**Ejemplo de salida**
11+
* (178, 180)
12+
13+
Ayuda: Puedes devolver múltiples parámetros: `return a, b`
14+
15+
**Teoría**
16+
Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección:
17+
https://snakify.org/lessons/print_input_numbers/
18+
19+
También puedes intentar paso a paso con trozos de la teoría:
20+
https://snakify.org/lessons/print_input_numbers/steps/1/
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `06` Previous and Next
22

3-
📝 Instructions:
3+
## 📝 Instructions:
44

55
Write a program that reads an integer number and returns its previous and next numbers. See the example below.
66

@@ -12,9 +12,9 @@ Write a program that reads an integer number and returns its previous and next n
1212
* (178, 180)
1313

1414

15-
**Theory**
1615
Hint: You can return multiple parameters: return a, b
1716

17+
**Theory**
1818
If you don't know how to start solving this assignment, please, review a theory for this lesson:
1919
https://snakify.org/lessons/print_input_numbers/
2020

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# `07` Compartiendo una manzana
2+
3+
## 📝 Instrucciones:
4+
5+
N estudiantes cogen K manzanas y las distribuyen entre ell@s de manera uniforme. La parte restante (la indivisible) permanece en la cesta. ¿Cuántas manzanas recibirá cada estudiante? ¿Cuántas manzanas quedarán en la cesta?
6+
El programa lee los números N y K. Debería devolver las dos respuestas a las preguntas anteriores.
7+
8+
**Ejemplo de entrada**
9+
* (6, 50)
10+
11+
**Ejemplo de salida**
12+
* (8, 2)
13+
14+
Ayuda: Puedes devolver múltiples parámetros: `return a, b`
15+
16+
**Teoría**
17+
Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección:
18+
https://snakify.org/lessons/print_input_numbers/
19+
20+
También puedes intentar paso a paso con trozos de la teoría:
21+
https://snakify.org/lessons/print_input_numbers/steps/1/
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `07` Apple Sharing
22

3-
📝 Instructions:
3+
## 📝 Instructions:
44

55
N students take K apples and distribute them among each other evenly. The remaining (the indivisible) part remains in the basket. How many apples will each single student get? How many apples will remain in the basket?
66
The program reads the numbers N and K. It should return the two answers for the questions above.
@@ -11,9 +11,9 @@ The program reads the numbers N and K. It should return the two answers for the
1111
**Example output**
1212
* (8, 2)
1313

14-
**Theory**
1514
Hint: You can return multiple parameters: return a, b
1615

16+
**Theory**
1717
If you don't know how to start solving this assignment, please, review a theory for this lesson:
1818
https://snakify.org/lessons/print_input_numbers/
1919

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# 07.1 El cuadrado de un número
2+
3+
# 📝 Instrucciones
4+
5+
Escribe un método llamado `square` que calculará el valor cuadrado de un número
6+
7+
## 💡 Ayuda:
8+
Usa el operador `**`
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# `08` Horas y minutos
2+
3+
## 📝 Instrucciones:
4+
5+
Dado el número entero N - el número de segundos que pasan desde la medianoche - ¿cuántas horas y minutos completos pasan desde la medianoche?
6+
7+
El programa debe imprimir dos números: el número de horas (entre 0 y 23) y el número de minutos (entre 0 y 1339).
8+
9+
Por ejemplo, si N = 3900, entonces han pasado 3900 segundos desde la medianoche - es decir, ahora es la 1:05am. Así que el programa debe imprimir 1 65 - 1 hora completa ha pasado desde la medianoche, 65 minutos completos han pasado desde la medianoche.
10+
11+
12+
**Ejemplo de entrada**
13+
* 3900
14+
15+
**Ejemplo de salida**
16+
* (1, 65)
17+
18+
**Teoría**
19+
Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección:
20+
https://snakify.org/lessons/print_input_numbers/
21+
22+
También puedes intentar paso a paso con trozos de la teoría:
23+
https://snakify.org/lessons/print_input_numbers/steps/1/
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `08` Hours and Minutes
22

3-
📝 Instructions:
3+
## 📝 Instructions:
44

55
Given the integer N - the number of seconds that is passed since midnight - how many full hours and full minutes are passed since midnight?
66

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# `09` Dos marcas de tiempo
2+
3+
## 📝 Instrucciones:
4+
5+
Dadas dos marcas de tiempo del mismo día: un número de horas, minutos y segundos para ambas marcas de tiempo. El momento de la primera marca de tiempo ocurrió antes del momento de la segunda. Calcula cuántos segundos pasaron entre ellos.
6+
7+
8+
**Ejemplo de entrada #1**
9+
* 1
10+
* 1
11+
* 1
12+
* 2
13+
* 2
14+
* 2
15+
16+
**Ejemplo de salida #1**
17+
* 3661
18+
19+
**Ejemplo de entrada #2**
20+
* 1
21+
* 2
22+
* 30
23+
* 1
24+
* 3
25+
* 20
26+
27+
**Ejemplo de salida #2**
28+
* 50
29+
30+
**Teoría**
31+
Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección:
32+
https://snakify.org/lessons/print_input_numbers/
33+
34+
También puedes intentar paso a paso con trozos de la teoría:
35+
https://snakify.org/lessons/print_input_numbers/steps/1/
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `09` Two Timestamp
22

3-
📝 Instructions:
3+
## 📝 Instructions:
44

55
Given two timestamps of the same day: a number of hours, minutes and seconds for both of the timestamps. The moment of the first timestamp happened before the moment of the second one. Calculate how many seconds passed between them.
66

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# `10` Dos dígitos
2+
3+
## 📝 Instrucciones:
4+
5+
Dado un entero de dos dígitos, devuelve su dígito izquierdo (las decenas) y luego su dígito derecho (las unidades). Utiliza el operador de división de enteros para obtener el dígito de las decenas y el operador de residuo/resto para obtener el dígito de las unidades.
6+
7+
**Ejemplo de entrada**
8+
* 79
9+
10+
**Ejemplo de salida**
11+
* (7, 9)
12+
13+
**Teoría**
14+
Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección:
15+
https://snakify.org/lessons/integer_float_numbers/
16+
17+
También puedes intentar paso a paso con trozos de la teoría:
18+
https://snakify.org/lessons/integer_float_numbers/steps/1/
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `10` Two Digits
22

3-
📝 Instructions:
3+
## 📝 Instructions:
44

55
Given a two-digit integer, return its left digit (a tens digit) and then its right digit (a ones digit). Use the operator of integer division for obtaining the tens digit and the operator of taking remainder for obtaining the ones digit.
66

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# `11` Intercambiar dígitos
2+
3+
## 📝 Instrucciones:
4+
5+
Dado un entero de dos dígitos, intercambia sus dígitos de posición e imprime el resultado.
6+
7+
**Ejemplo de entrada**
8+
* 79
9+
10+
**Ejemplo de salida**
11+
* 97
12+
13+
**Teoría**
14+
Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección:
15+
https://snakify.org/lessons/integer_float_numbers/
16+
17+
También puedes intentar paso a paso con trozos de la teoría:
18+
https://snakify.org/lessons/integer_float_numbers/steps/1/
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `11` Swap Digits
22

3-
📝 Instructions:
3+
## 📝 Instructions:
44

55
Given a two-digit integer, swap its digits and print the result.
66

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# `12` Últimos dos dígitos
2+
3+
## 📝 Instrucciones:
4+
5+
Dado un número entero mayor que 9, imprime sus últimos dos dígitos.
6+
7+
**Ejemplo de entrada**
8+
1234
9+
10+
**Ejemplo de salida**
11+
34
12+
13+
**Teoría**
14+
Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección:
15+
https://snakify.org/lessons/integer_float_numbers/
16+
17+
También puedes intentar paso a paso con trozos de la teoría:
18+
https://snakify.org/lessons/integer_float_numbers/steps/1/

0 commit comments

Comments
 (0)