Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Translated until exercise 20 only because the rest haven't been formatted #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
alesanchezr merged 2 commits into 4GeeksAcademy:master from marcogonzalo:master
May 7, 2020
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
1 change: 1 addition & 0 deletions .gitignore
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
!.gitpod.Dockerfile
!bc.json
!README.md
!README.*.md

!/exercises
!/exercises/*
Expand Down
1 change: 1 addition & 0 deletions README.md
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds

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

This project follows the
[all-contributors](https://github.com/kentcdodds/all-contributors)
Expand Down
4 changes: 4 additions & 0 deletions exercises/01-welcome/README.es.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Bienvenid@ a Python!

¡¡Nos estusiasma mucho tenerte aquí!! 🎉 😂
Presiona `Next` `Next →` de arriba a la derecha cuando quieras empezar.
5 changes: 4 additions & 1 deletion exercises/01-welcome/README.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# Welcome to Python!
# 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.
19 changes: 19 additions & 0 deletions exercises/02-hello-world/README.es.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# `02` Hola, Mundo

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.

Este es un ejemplo de cómo usarlo:
```py
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.

## 💡 Información adicional:

Video de 5 minutos sobre la consola:
https://www.youtube.com/watch?v=vROGBvX_MHQ
5 changes: 3 additions & 2 deletions exercises/02-hello-world/README.md
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ This is an example of how to use it:
print("How are you?")
```

📝 Instructions:
## 📝 Instructions:

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

💡 Additional info:
## 💡 Additional info:

5 minutes video about the console:
https://www.youtube.com/watch?v=1RlkftxAo-M
15 changes: 15 additions & 0 deletions exercises/03-sum_of_three_numbers/README.es.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# `03` Sum of three numbers

## 📝 Instrucciones:

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

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

**Ejemplo de salida**
- 11

2 changes: 1 addition & 1 deletion exercises/03-sum_of_three_numbers/README.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `03` Sum of three numbers

📝 Instructions:
## 📝 Instructions:

**Statement**
Taking 3 numbers from the input, print their sum. Every number is given on a separate line.
Expand Down
22 changes: 22 additions & 0 deletions exercises/04-area_of_right_triangle/README.es.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# `04` Área de un triángulo rectángulo

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

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

**Ejemplo de entrada**
* 3
* 5

**Ejemplo de salida**
* 7.5

**Teoría**

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:
https://snakify.org/lessons/print_input_numbers/steps/1/
2 changes: 1 addition & 1 deletion exercises/04-area_of_right_triangle/README.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `04` Area of right triangle

📝 Instructions:
## 📝 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.

Expand Down
20 changes: 20 additions & 0 deletions exercises/05-hello_harry/README.es.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# `05` Hola Harry

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

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

**Ejemplo de entrada**
* Harry

**Ejemplo de salida**
* Hello, 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:
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/
2 changes: 1 addition & 1 deletion exercises/05-hello_harry/README.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `05` Hello Harry

📝 Instructions:
## 📝 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.

Expand Down
20 changes: 20 additions & 0 deletions exercises/06-previous_and_next/README.es.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# `06` Anterior y siguiente

## 📝 Instrucciones:

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 salida**
* (178, 180)

Ayuda: 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:
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/
4 changes: 2 additions & 2 deletions exercises/06-previous_and_next/README.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `06` Previous and Next

📝 Instructions:
## 📝 Instructions:

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

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


**Theory**
Hint: You can return multiple parameters: return a, b

**Theory**
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/

Expand Down
21 changes: 21 additions & 0 deletions exercises/07-Apple_sharing/README.es.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# `07` Compartiendo una manzana

## 📝 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?
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 salida**
* (8, 2)

Ayuda: 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:
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/
4 changes: 2 additions & 2 deletions exercises/07-Apple_sharing/README.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `07` Apple Sharing

📝 Instructions:
## 📝 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.
Expand All @@ -11,9 +11,9 @@ The program reads the numbers N and K. It should return the two answers for the
**Example output**
* (8, 2)

**Theory**
Hint: You can return multiple parameters: return a, b

**Theory**
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/

Expand Down
8 changes: 8 additions & 0 deletions exercises/07.1-square-value/README.es.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# 07.1 El cuadrado de un número

# 📝 Instrucciones

Escribe un método llamado `square` que calculará el valor cuadrado de un número

## 💡 Ayuda:
Usa el operador `**`
23 changes: 23 additions & 0 deletions exercises/08-hours_and_minutes/README.es.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# `08` Horas y minutos

## 📝 Instrucciones:

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?

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

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.


**Ejemplo de entrada**
* 3900

**Ejemplo de salida**
* (1, 65)

**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:
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/
2 changes: 1 addition & 1 deletion exercises/08-hours_and_minutes/README.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `08` Hours and Minutes

📝 Instructions:
## 📝 Instructions:

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

Expand Down
35 changes: 35 additions & 0 deletions exercises/09-Two_timestamps/README.es.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# `09` Dos marcas de tiempo

## 📝 Instrucciones:

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.


**Ejemplo de entrada #1**
* 1
* 1
* 1
* 2
* 2
* 2

**Ejemplo de salida #1**
* 3661

**Ejemplo de entrada #2**
* 1
* 2
* 30
* 1
* 3
* 20

**Ejemplo de salida #2**
* 50

**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:
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/
2 changes: 1 addition & 1 deletion exercises/09-Two_timestamps/README.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `09` Two Timestamp

📝 Instructions:
## 📝 Instructions:

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.

Expand Down
18 changes: 18 additions & 0 deletions exercises/10-Two_digits/README.es.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# `10` Dos dígitos

## 📝 Instrucciones:

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.

**Ejemplo de entrada**
* 79

**Ejemplo de salida**
* (7, 9)

**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:
https://snakify.org/lessons/integer_float_numbers/

También puedes intentar paso a paso con trozos de la teoría:
https://snakify.org/lessons/integer_float_numbers/steps/1/
2 changes: 1 addition & 1 deletion exercises/10-Two_digits/README.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `10` Two Digits

📝 Instructions:
## 📝 Instructions:

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.

Expand Down
18 changes: 18 additions & 0 deletions exercises/11-Swap_digits/README.es.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# `11` Intercambiar dígitos

## 📝 Instrucciones:

Dado un entero de dos dígitos, intercambia sus dígitos de posición e imprime el resultado.

**Ejemplo de entrada**
* 79

**Ejemplo de salida**
* 97

**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:
https://snakify.org/lessons/integer_float_numbers/

También puedes intentar paso a paso con trozos de la teoría:
https://snakify.org/lessons/integer_float_numbers/steps/1/
2 changes: 1 addition & 1 deletion exercises/11-Swap_digits/README.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `11` Swap Digits

📝 Instructions:
## 📝 Instructions:

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

Expand Down
18 changes: 18 additions & 0 deletions exercises/12-Last_two_digits/README.es.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# `12` Últimos dos dígitos

## 📝 Instrucciones:

Dado un número entero mayor que 9, imprime sus últimos dos dígitos.

**Ejemplo de entrada**
1234

**Ejemplo de salida**
34

**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:
https://snakify.org/lessons/integer_float_numbers/

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

AltStyle によって変換されたページ (->オリジナル) /