Skip to content
16 changes: 16 additions & 0 deletions exercises/000-welcome/README.es.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Bienvenid@ a Python!

¡¡Nos estusiasma mucho tenerte aquí!! 🎉 😂

Este es el último de una serie de ejercicios publicados para practicar Python desde cero por [@alesanchezr](https://twitter.com/alesanchezr) y [4GeeksAcademy](https://4geeksacademy.com).

Si no haz completado los otros ejercicios te recomiendo que empieces por alli:

1. [Python for beginners](https://github.com/4GeeksAcademy/python-beginner-programming-exercises)

2. [Practice Looping Lists and Tuples](https://github.com/4GeeksAcademy/python-lists-loops-programming-exercises)

3. [Practice Functions](https://github.com/4GeeksAcademy/python-functions-programming-exercises)


Presiona `Next →` en la esquina superior derecha cuando quieras empezar.
15 changes: 15 additions & 0 deletions exercises/000-welcome/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Welcome to Python!

We are very excited to have you here !! 🎉 😂

This is the last series of exercises of a list of Python interactive tutorials published by [@alesanchezr](https://twitter.com/alesanchezr) with [4GeeksAcademy](https://4geeksacademy.com).

If you have not completed them and you are new to javascript, I strongly recomend you start with:

1. [Python for beginners](https://github.com/4GeeksAcademy/python-beginner-programming-exercises)

2. [Practice Looping Lists and Tuples](https://github.com/4GeeksAcademy/python-lists-loops-programming-exercises)

3. [Practice Functions](https://github.com/4GeeksAcademy/python-functions-programming-exercises)

Click `Next →` on the top right of this instructions when you are ready to start.
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# `02` Hola, Mundo
# `001` hello world

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.
Hoy en día, la impresión en la consola se utiliza sobre todo como herramienta de monitoreo, ideal para dejar un rastro del contenido de las variables durante la ejecución del programa.

## Ejemplo:

Este es un ejemplo de cómo usarlo:
```py
print("How are you?")
```

## 📝 Instrucciones:

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

## 💡 Pista:

Video de 5 minutos sobre la consola:
https://www.youtube.com/watch?v=vROGBvX_MHQ
+ Video de 5 minutos sobre [la consola](https://www.youtube.com/watch?v=vROGBvX_MHQ)
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# `02` Hello World
# `001` hello world

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.

This is an example of how to use it:
## Example:

```py
print("How are you?")
```
Expand All @@ -17,5 +18,4 @@ print("How are you?")

## 💡 Hint:

5 minutes video about the console:
https://www.youtube.com/watch?v=1RlkftxAo-M
+ 5 minutes video about [the console](https://www.youtube.com/watch?v=1RlkftxAo-M)
File renamed without changes.
File renamed without changes.
16 changes: 16 additions & 0 deletions exercises/002-sum_of_three_numbers/README.es.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# `002` sum of three numbers

## 📝 Instrucciones:

1. Teniendo tres números de entrada, imprime su suma. Cada número va en una línea aparte.

## Ejemplo de entrada:

+ 2
+ 3
+ 6

## Ejemplo de salida:

+ 11

Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# `03` Sum of three numbers
# `002` sum of three numbers

## 📝 Instructions:

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
+ 2
+ 3
+ 6

### Example output:
## Example output:

- 11
+ 11

19 changes: 19 additions & 0 deletions exercises/003-area_of_right_triangle/README.es.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# `003` area of right triangle

## 📝 Instrucciones:

1. Completa la función `area_of_triangle()` para que que tome el largo 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:

```py
area_of_triangle(3,5)
print(7.5)
```
## 💡 Pistas:

+ Si no sabes por donde empezar este ejercicio, 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: https://snakify.org/lessons/print_input_numbers/steps/1/
19 changes: 19 additions & 0 deletions exercises/003-area_of_right_triangle/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# `003` area of right triangle

## 📝 Instructions:

1. Complete the `area_of_triangle()` function so that it 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)

## Ejemplo:

```py
area_of_triangle(3,5)
print(7.5)
```
## 💡 Hints:

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

+ You may also try step-by-step theory chunks: https://snakify.org/lessons/print_input_numbers/steps/1/
26 changes: 26 additions & 0 deletions exercises/004-hello_harry/README.es.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# `004` hello Harry

## 📝 Instrucciones:

1. Completa la función `hello_name()` para que salude al usuario imprimiendo la palabra `Hello`, luego le agregue una coma, el nombre del usuario y un signo de exclamación después de él.

*La salida de tu función debe coincidir estrictamente con la deseada, caracter por caracter. No debe haber ningún espacio entre el nombre y el signo de exclamación.*

## Ejemplo entrada:

```py
hello_name(Harry)
```
## Ejemplo de salida:

Hello, Harry!

## 💡 Pistas:

+ Puedes usar el operador '+' para concatenar dos strings de texto. Ve la lección para más detalles.

+ Si no sabes por donde partir este ejercicio 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:
https://snakify.org/lessons/print_input_numbers/steps/1/
25 changes: 25 additions & 0 deletions exercises/004-hello_harry/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# `004` hello Harry

## 📝 Instructions:

1. Complete the `hello_name()` function that greets the user by printing the word `Hello`, a comma, the name of the user and an exclamation mark after it.

*Your function's output should strictly match the desired one, character by character. There shouldn't be any space between the name and the exclamation mark.*

## Example input:

```py
hello_name(Harry)
```

## Example output:

Hello, Harry!

## 💡 Hints:

+ You can use '+' operator to concatenate two strings. See the lesson for details.

+ 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: https://snakify.org/lessons/print_input_numbers/steps/1/
File renamed without changes.
File renamed without changes.
23 changes: 23 additions & 0 deletions exercises/005-previous_and_next/README.es.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# `005` previous and next

## 📝 Instrucciones:

1. Completa la función `previous_next()` para que lea un número entero y devuelva sus números anteriores y siguientes.

## Ejemplo:

```py
previous_next(179)
```

## Ejemplo de salida:

+ (178, 180)

## 💡 Pistas:

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

+ Si no sabes por donde partir este ejercicio, 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: https://snakify.org/lessons/print_input_numbers/steps/1/
22 changes: 22 additions & 0 deletions exercises/005-previous_and_next/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# `005` previous and next

## 📝 Instructions:

1. Complete a function `previous_next()` that reads an integer number and returns its previous and next numbers.

## Example input:

```py
previous_next(179)
```
## Example output:

+ (178, 180)

## 💡 Hints:

+ 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: https://snakify.org/lessons/print_input_numbers/steps/1/
25 changes: 25 additions & 0 deletions exercises/006-apple_sharing/README.es.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# `007` apple sharing

## 📝 Instrucciones:

1. `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? y ¿Cuántas manzanas quedarán en la cesta? *Esta función lee los números `N` y `K` y debería devolver la respuesta a ambas preguntas.*

## Ejemplo de entrada:

```py
apple_sharing(6, 50)
```

## Ejemplo de salida:

+ (8, 2)

## 💡 Pistas:

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

+ Si no sabes por donde partir este ejercicio 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:
https://snakify.org/lessons/print_input_numbers/steps/1/
26 changes: 26 additions & 0 deletions exercises/006-apple_sharing/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# `007` apple sharing

## 📝 Instructions:

1. `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 and how many apples will remain in the basket? *The function reads the numbers `N` and `K` and it should return the two answers for the questions above.*

## Example input:

```py
apple_sharing(6, 50)
```

## Example output:

+ (8, 2)


## 💡 Hints:

+ 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:
https://snakify.org/lessons/print_input_numbers/steps/1/
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions exercises/006.1-square_value_of_number/README.es.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# `006.1` square value of number

## 📝 Instrucciones:

1. Escribe una función llamada `square()` que calcule el valor al cuadrado de un número

## 💡 Pista:

+ Usa el operador `**`.
9 changes: 9 additions & 0 deletions exercises/006.1-square_value_of_number/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# `006.1` square value of number

## 📝 Instructions

1. Write a function called `square()` that calculates the square value of a number.

## 💡 Hint:

+ Using the `**` operator
27 changes: 27 additions & 0 deletions exercises/007-hours_and_minutes/README.es.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# `007` hours and minutes

## 📝 Instrucciones:

1. Dado el número entero `N` - el número de segundos que pasan desde la medianoche ¿Cuántas horas y minutos completos han pasado desde la medianoche? *La función debe imprimir dos números: el número de horas (entre 0 y 23) y el número de minutos (entre 0 y 1339)*.

## Ejemplo:

* Si N = 3900 --> han pasado 3900 segundos desde la medianoche ,es decir, ahora es la 1:05 am.

+ El programa debe imprimir 1 65 --> 1 hora completa ha pasado desde la medianoche, 65 minutos completos han pasado desde la medianoche.

## Ejemplo de entrada:

```py
hours_minutes(3900)
```

## Ejemplo de salida:

+ (1, 65)

## 💡 Pistas:

+ Si no sabes por donde partir este ejercicio por favor, revisa la teoría en esta lección: ttps://snakify.org/lessons/print_input_numbers/

+ También puedes intentar paso a paso con trozos de la teoría: https://snakify.org/lessons/print_input_numbers/steps/1/
Loading