Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion exercises/01-welcome/README.es.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Bienvenid@ a Python!

¡¡Nos estusiasma mucho tenerte aquí!! 🎉 😂
Presiona `Next` `Next →` de arriba a la derecha cuando quieras empezar.
Presiona `Next →` de arriba a la derecha cuando quieras empezar.
2 changes: 1 addition & 1 deletion exercises/01-welcome/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Welcome to Python!

We are very excited to have you here !! 🎉 😂
Click `next` on the top right of this instructions when you are ready to start.
Click `Next →` on the top right of this instructions when you are ready to start.
8 changes: 5 additions & 3 deletions exercises/02-hello-world/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

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`.

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.
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.

Este es un ejemplo de cómo usarlo:
```py
Expand All @@ -11,9 +13,9 @@ print("How are you?")

## 📝 Instrucciones:

Usa la función `print()` para escribir "Hello World" en la consola. Siéntete libre de intentar otras cosas también.
1. Usa la función `print()` para escribir "Hello World" en la consola. Siéntete libre de intentar otras cosas también.

## 💡 Información adicional:
## 💡 Pista:

Video de 5 minutos sobre la consola:
https://www.youtube.com/watch?v=vROGBvX_MHQ
10 changes: 5 additions & 5 deletions exercises/02-hello-world/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

In Python, we use `print` to make the computer write anything we want (the content of a variable, a given string, etc.) in something called "the console".

Every language has a console, as it was the only way to interact with the users at the beginning (before the Windows or MacOS arrived). Today, printing in the console is used mostly as a monitoring tool, ideal to leave a trace of the content of variables during the program execution.
Every language has a console, as it was the only way to interact with the users at the beginning (before the Windows or MacOS arrived).

Today, printing in the console is used mostly as a monitoring tool, ideal to leave a trace of the content of variables during the program execution.

This is an example of how to use it:
```py
Expand All @@ -11,11 +13,9 @@ print("How are you?")

## 📝 Instructions:

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

## 💡 Additional info:
## 💡 Hint:

5 minutes video about the console:
https://www.youtube.com/watch?v=1RlkftxAo-M
9 changes: 5 additions & 4 deletions exercises/03-sum_of_three_numbers/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

## 📝 Instrucciones:

**Planteamiento**
Obteniendo tres números de la entrada, imprime su suma. Cada número es dado en una línea aparte.
1. Obteniendo tres números de la entrada, imprime su suma. Cada número es dado en una línea aparte.

### Ejemplo de entrada:

**Ejemplo de entrada**
- 2
- 3
- 6

**Ejemplo de salida**
### Ejemplo de salida:

- 11

9 changes: 5 additions & 4 deletions exercises/03-sum_of_three_numbers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

## 📝 Instructions:

**Statement**
Taking 3 numbers from the input, print their sum. Every number is given on a separate line.
1. Taking 3 numbers from the input, print their sum. Every number is given on a separate line.

### Example input:

**Example input**
- 2
- 3
- 6

**Example output**
### Example output:

- 11

14 changes: 8 additions & 6 deletions exercises/04-area_of_right_triangle/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,23 @@

## 📝 Instrucciones:

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.
1. 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.

![Imagen descriptiva](http://i.imgur.com/6EkzVxA.jpg)

**Ejemplo de entrada**
### Ejemplo de entrada:

* 3
* 5

**Ejemplo de salida**
### Ejemplo de salida:

* 7.5

**Teoría**
## 💡 Pista:

Si no sabes cómo empezar la solución a este problema, por favor, revisa la teoría en esta lección:
+ Si no sabes cómo empezar la solución a este problema, por favor, revisa la teoría en esta lección:
https://snakify.org/lessons/print_input_numbers/

También puedes intentar paso a paso con trozos de la teoría:
+ También puedes intentar paso a paso con trozos de la teoría:
https://snakify.org/lessons/print_input_numbers/steps/1/
19 changes: 10 additions & 9 deletions exercises/04-area_of_right_triangle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,22 @@

## 📝 Instructions:

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.
1. 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.

![Image description](http://i.imgur.com/6EkzVxA.jpg)

**Example input**
* 3
* 5
### Example input:

**Example output**
* 7.5
+ 5

**Theory**
### Example output:

If you don't know how to start solving this assignment, please, review a theory for this lesson:
+ 7.5

## 💡 Hint:

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

You may also try step-by-step theory chunks:
+ You may also try step-by-step theory chunks:
https://snakify.org/lessons/print_input_numbers/steps/1/
21 changes: 12 additions & 9 deletions exercises/05-hello_harry/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,22 @@

## 📝 Instrucciones:

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.
1. Escribe un programa que salude al usuario imprimiendo la palabra `Hello`, una coma, el nombre del usuario y un signo de exclamación después de él. Ve los ejemplos a continuación.

**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.
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.

**Ejemplo de entrada**
* Harry
### Ejemplo de entrada:

**Ejemplo de salida**
* Hello, Harry!
+ Harry

**Teoría**
Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección:
### Ejemplo de salida:

+ Hello, Harry!

## 💡 Pista:

+ Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección:
https://snakify.org/lessons/print_input_numbers/

También puedes intentar paso a paso con trozos de la teoría:
+ También puedes intentar paso a paso con trozos de la teoría:
https://snakify.org/lessons/print_input_numbers/steps/1/
21 changes: 12 additions & 9 deletions exercises/05-hello_harry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,23 @@

## 📝 Instructions:

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.
1. 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.

**Warning.** Your program's output should strictly match the desired one, character by character. There shouldn't be any space between the name and the exclamation mark. You can use + operator to concatenate two strings. See the lesson for details.
Your program's output should strictly match the desired one, character by character. There shouldn't be any space between the name and the exclamation mark. You can use + operator to concatenate two strings. See the lesson for details.


**Example input**
* Harry
### Example input:

**Example output**
* Hello, Harry!
+ Harry

**Theory**
If you don't know how to start solving this assignment, please, review a theory for this lesson:
### Example output:

+ Hello, Harry!

## 💡 Hint:

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

You may also try step-by-step theory chunks:
+ You may also try step-by-step theory chunks:
https://snakify.org/lessons/print_input_numbers/steps/1/
21 changes: 12 additions & 9 deletions exercises/06-previous_and_next/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,22 @@

## 📝 Instrucciones:

Escribe un programa que lea un número entero y devuelva sus números anteriores y siguientes. Ve el ejemplo a continuación.
1. Escribe un programa que lea un número entero y devuelva sus números anteriores y siguientes. Ve el ejemplo a continuación.

**Ejemplo de entrada**
* 179
### Ejemplo de entrada:

**Ejemplo de salida**
* (178, 180)
+ 179

Ayuda: Puedes devolver múltiples parámetros: `return a, b`
### Ejemplo de salida:

**Teoría**
Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección:
+ (178, 180)

## 💡 Pista:

+ Puedes devolver múltiples parámetros: `return a, b`

+ Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección:
https://snakify.org/lessons/print_input_numbers/

También puedes intentar paso a paso con trozos de la teoría:
+ También puedes intentar paso a paso con trozos de la teoría:
https://snakify.org/lessons/print_input_numbers/steps/1/
19 changes: 10 additions & 9 deletions exercises/06-previous_and_next/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,22 @@

## 📝 Instructions:

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

### Example input:

**Example input**
* 179
+ 179

**Example output**
* (178, 180)
### Example output:

+ (178, 180)

Hint: You can return multiple parameters: return a, b
## 💡 Hint:

**Theory**
If you don't know how to start solving this assignment, please, review a theory for this lesson:
+ You can return multiple parameters: return a, b

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

You may also try step-by-step theory chunks:
+ You may also try step-by-step theory chunks:
https://snakify.org/lessons/print_input_numbers/steps/1/
24 changes: 15 additions & 9 deletions exercises/07-Apple_sharing/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,26 @@

## 📝 Instrucciones:

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?
N estudiantes cogen K manzanas y las distribuyen entre ell@s de manera uniforme. La parte restante (la indivisible) permanece en la cesta.

1. ¿Cuántas manzanas recibirá cada estudiante? y ¿Cuántas manzanas quedarán en la cesta?

El programa lee los números N y K. Debería devolver las dos respuestas a las preguntas anteriores.

**Ejemplo de entrada**
* (6, 50)
### Ejemplo de entrada:

+ (6, 50)

### Ejemplo de salida:

**Ejemplo de salida**
* (8, 2)
+ (8, 2)

## 💡 Pista:

Ayuda: Puedes devolver múltiples parámetros: `return a, b`
+ Puedes devolver múltiples parámetros: `return a, b`

**Teoría**
Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección:
+ Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección:
https://snakify.org/lessons/print_input_numbers/

También puedes intentar paso a paso con trozos de la teoría:
+ También puedes intentar paso a paso con trozos de la teoría:
https://snakify.org/lessons/print_input_numbers/steps/1/
27 changes: 17 additions & 10 deletions exercises/07-Apple_sharing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,27 @@

## 📝 Instructions:

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?
The program reads the numbers N and K. It should return the two answers for the questions above.
N students take K apples and distribute them among each other evenly. The remaining (the indivisible) part remains in the basket.

**Example input**
* (6, 50)
1. How many apples will each single student get? How many apples will remain in the basket?

**Example output**
* (8, 2)
The program reads the numbers `N` and `K`. It should return the two answers for the questions above.

Hint: You can return multiple parameters: return a, b
### Example input:

**Theory**
If you don't know how to start solving this assignment, please, review a theory for this lesson:
+ (6, 50)

### Example output:

+ (8, 2)


## 💡 Pista:

+ You can return multiple parameters: return a, b

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

You may also try step-by-step theory chunks:
+ You may also try step-by-step theory chunks:
https://snakify.org/lessons/print_input_numbers/steps/1/
9 changes: 5 additions & 4 deletions exercises/07.1-square-value/README.es.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# 07.1 El cuadrado de un número

# 📝 Instrucciones
## 📝 Instrucciones:

Escribe un método llamado `square` que calculará el valor cuadrado de un número
1. Escribe una función llamada `square` que calculará el valor cuadrado de un número

## 💡 Ayuda:
Usa el operador `**`
## 💡 Pista:

+ Usa el operador `**`.
Loading