diff --git a/exercises/01-welcome/README.es.md b/exercises/01-welcome/README.es.md index 9635c1a9..4df18bab 100644 --- a/exercises/01-welcome/README.es.md +++ b/exercises/01-welcome/README.es.md @@ -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. diff --git a/exercises/01-welcome/README.md b/exercises/01-welcome/README.md index 2fbac070..6358f29d 100644 --- a/exercises/01-welcome/README.md +++ b/exercises/01-welcome/README.md @@ -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. \ No newline at end of file +Click `Next →` on the top right of this instructions when you are ready to start. \ No newline at end of file diff --git a/exercises/02-hello-world/README.es.md b/exercises/02-hello-world/README.es.md index 87cf9aee..ce98ce3c 100644 --- a/exercises/02-hello-world/README.es.md +++ b/exercises/02-hello-world/README.es.md @@ -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 @@ -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 diff --git a/exercises/02-hello-world/README.md b/exercises/02-hello-world/README.md index a1ee2c1c..c20928db 100644 --- a/exercises/02-hello-world/README.md +++ b/exercises/02-hello-world/README.md @@ -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 @@ -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 \ No newline at end of file diff --git a/exercises/03-sum_of_three_numbers/README.es.md b/exercises/03-sum_of_three_numbers/README.es.md index 761cb3b8..1553a6d9 100644 --- a/exercises/03-sum_of_three_numbers/README.es.md +++ b/exercises/03-sum_of_three_numbers/README.es.md @@ -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 diff --git a/exercises/03-sum_of_three_numbers/README.md b/exercises/03-sum_of_three_numbers/README.md index 29cddf6e..e657813d 100644 --- a/exercises/03-sum_of_three_numbers/README.md +++ b/exercises/03-sum_of_three_numbers/README.md @@ -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 diff --git a/exercises/04-area_of_right_triangle/README.es.md b/exercises/04-area_of_right_triangle/README.es.md index 4ffd7a88..04f7780b 100644 --- a/exercises/04-area_of_right_triangle/README.es.md +++ b/exercises/04-area_of_right_triangle/README.es.md @@ -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/ \ No newline at end of file diff --git a/exercises/04-area_of_right_triangle/README.md b/exercises/04-area_of_right_triangle/README.md index a0ae218e..4295f8ef 100644 --- a/exercises/04-area_of_right_triangle/README.md +++ b/exercises/04-area_of_right_triangle/README.md @@ -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/ \ No newline at end of file diff --git a/exercises/05-hello_harry/README.es.md b/exercises/05-hello_harry/README.es.md index 4539c20d..d3ad7c1c 100644 --- a/exercises/05-hello_harry/README.es.md +++ b/exercises/05-hello_harry/README.es.md @@ -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/ diff --git a/exercises/05-hello_harry/README.md b/exercises/05-hello_harry/README.md index d947fc90..466d0a32 100644 --- a/exercises/05-hello_harry/README.md +++ b/exercises/05-hello_harry/README.md @@ -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/ diff --git a/exercises/06-previous_and_next/README.es.md b/exercises/06-previous_and_next/README.es.md index c2c88c89..8634c335 100644 --- a/exercises/06-previous_and_next/README.es.md +++ b/exercises/06-previous_and_next/README.es.md @@ -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/ \ No newline at end of file diff --git a/exercises/06-previous_and_next/README.md b/exercises/06-previous_and_next/README.md index f8ffc4d7..47e19f90 100644 --- a/exercises/06-previous_and_next/README.md +++ b/exercises/06-previous_and_next/README.md @@ -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/ \ No newline at end of file diff --git a/exercises/07-Apple_sharing/README.es.md b/exercises/07-Apple_sharing/README.es.md index 477b50aa..e8473f70 100644 --- a/exercises/07-Apple_sharing/README.es.md +++ b/exercises/07-Apple_sharing/README.es.md @@ -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/ \ No newline at end of file diff --git a/exercises/07-Apple_sharing/README.md b/exercises/07-Apple_sharing/README.md index f9305845..6e8a2176 100644 --- a/exercises/07-Apple_sharing/README.md +++ b/exercises/07-Apple_sharing/README.md @@ -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/ \ No newline at end of file diff --git a/exercises/07.1-square-value/README.es.md b/exercises/07.1-square-value/README.es.md index 9d4842ae..f92d562e 100644 --- a/exercises/07.1-square-value/README.es.md +++ b/exercises/07.1-square-value/README.es.md @@ -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 `**` \ No newline at end of file +## 💡 Pista: + ++ Usa el operador `**`. diff --git a/exercises/07.1-square-value/README.md b/exercises/07.1-square-value/README.md index c0326ac7..4a8917a9 100644 --- a/exercises/07.1-square-value/README.md +++ b/exercises/07.1-square-value/README.md @@ -1,8 +1,9 @@ # 07.1 Square Value of Number -# 📝 Instructions +## 📝 Instructions -Write a method called `square` which can calculate square value of number +1. Write a function called `square` which can calculate square value of number. -## 💡 Hints: -Using the ** operator \ No newline at end of file +## 💡 Hint: + ++ Using the ** operator diff --git a/exercises/08-hours_and_minutes/README.es.md b/exercises/08-hours_and_minutes/README.es.md index 2cba201e..eecb46b1 100644 --- a/exercises/08-hours_and_minutes/README.es.md +++ b/exercises/08-hours_and_minutes/README.es.md @@ -2,22 +2,31 @@ ## 📝 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? +Dado el número entero `N` - el número de segundos que pasan desde la medianoche: + + 1. ¿cuántas horas y minutos completos han pasado 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. +Por 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** -* 3900 -**Ejemplo de salida** -* (1, 65) +### Ejemplo de entrada: -**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: ++ 3900 + +### Ejemplo de salida: + ++ (1, 65) + +## 💡 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/ diff --git a/exercises/08-hours_and_minutes/README.md b/exercises/08-hours_and_minutes/README.md index b240d13f..498aa29b 100644 --- a/exercises/08-hours_and_minutes/README.md +++ b/exercises/08-hours_and_minutes/README.md @@ -2,22 +2,30 @@ ## 📝 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? +Given the integer N - the number of seconds that is passed since midnight - + +1. How many full hours and full minutes are passed since midnight? The program should print two numbers: the number of hours (between 0 and 23) and the number of minutes (between 0 and 1339). -For example, if N = 3900, then 3900 seconds have passed since midnight - i.e. now it's 1:05am. So the program should print 1 65 - 1 full hour is passed since midnight, 65 full minutes passed since midnight. +For example: + +* If N = 3900 --> then 3900 seconds have passed since midnight - i.e. now it's 1:05am. + +So the program should print 1 65 --> 1 full hour is passed since midnight, 65 full minutes passed since midnight. + +### Example input: + ++ 3900 +### Example output: -**Example input** -* 3900 ++ (1, 65) -**Example output** -* (1, 65) +## 💡 Hint: -**Theory** -If you don't know how to start solving this assignment, please, review a theory for this lesson: ++ 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/ diff --git a/exercises/09-Two_timestamps/README.es.md b/exercises/09-Two_timestamps/README.es.md index 83e87f51..a88db48c 100644 --- a/exercises/09-Two_timestamps/README.es.md +++ b/exercises/09-Two_timestamps/README.es.md @@ -2,34 +2,42 @@ ## 📝 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. +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. +1. Calcula cuántos segundos pasaron entre ellos. -**Ejemplo de entrada #1** -* 1 -* 1 -* 1 -* 2 -* 2 -* 2 +### Ejemplo de entrada #1: -**Ejemplo de salida #1** -* 3661 ++ 1 ++ 1 ++ 1 ++ 2 ++ 2 ++ 2 -**Ejemplo de entrada #2** -* 1 -* 2 -* 30 -* 1 -* 3 -* 20 +### Ejemplo de salida #1: -**Ejemplo de salida #2** -* 50 ++ 3661 -**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 entrada #2: + ++ 1 ++ 2 ++ 30 ++ 1 ++ 3 ++ 20 + +### Ejemplo de salida #2: + ++ 50 + +## 💡 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/ \ No newline at end of file diff --git a/exercises/09-Two_timestamps/README.md b/exercises/09-Two_timestamps/README.md index fc3871f9..179f580f 100644 --- a/exercises/09-Two_timestamps/README.md +++ b/exercises/09-Two_timestamps/README.md @@ -2,34 +2,42 @@ ## 📝 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. +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. -**Example input #1** -* 1 -* 1 -* 1 -* 2 -* 2 -* 2 +1. Calculate how many seconds passed between them. -**Example output #1** -* 3661 +### Example input #1: -**Example input #2** -* 1 -* 2 -* 30 -* 1 -* 3 -* 20 ++ 1 ++ 1 ++ 1 ++ 2 ++ 2 ++ 2 -**Example output #2** -* 50 +### Example output #1: -**Theory** -If you don't know how to start solving this assignment, please, review a theory for this lesson: ++ 3661 + +### Example input #2: + ++ 1 ++ 2 ++ 30 ++ 1 ++ 3 ++ 20 + +### Example output #2: + ++ 50 + +## 💡 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/ diff --git a/exercises/10-Two_digits/README.es.md b/exercises/10-Two_digits/README.es.md index a7f5366b..84387079 100644 --- a/exercises/10-Two_digits/README.es.md +++ b/exercises/10-Two_digits/README.es.md @@ -2,17 +2,20 @@ ## 📝 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. +1. 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 entrada: -**Ejemplo de salida** -* (7, 9) ++ 79 -**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: + ++ (7, 9) + +## 💡 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/integer_float_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/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/10-Two_digits/README.md b/exercises/10-Two_digits/README.md index d66f430d..45ae88e5 100644 --- a/exercises/10-Two_digits/README.md +++ b/exercises/10-Two_digits/README.md @@ -2,17 +2,20 @@ ## 📝 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. +1. 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. -**Example input** -* 79 +### Example input: -**Example output** -* (7, 9) ++ 79 -**Theory** -If you don't know how to start solving this assignment, please, review a theory for this lesson: +### Example output: + ++ (7, 9) + +## 💡 Hint: + ++ If you don't know how to start solving this assignment, please, review a theory for this lesson: https://snakify.org/lessons/integer_float_numbers/ -You may also try step-by-step theory chunks: ++ You may also try step-by-step theory chunks: https://snakify.org/lessons/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/11-Swap_digits/README.es.md b/exercises/11-Swap_digits/README.es.md index 49078fd8..3da4d630 100644 --- a/exercises/11-Swap_digits/README.es.md +++ b/exercises/11-Swap_digits/README.es.md @@ -2,17 +2,20 @@ ## 📝 Instrucciones: -Dado un entero de dos dígitos, intercambia sus dígitos de posición e imprime el resultado. +1. Dado un entero de dos dígitos, intercambia sus dígitos de posición e imprime el resultado. -**Ejemplo de entrada** -* 79 +### Ejemplo de entrada: -**Ejemplo de salida** -* 97 ++ 79 -**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: + ++ 97 + +## 💡 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/integer_float_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/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/11-Swap_digits/README.md b/exercises/11-Swap_digits/README.md index d0cf7e23..db5e824d 100644 --- a/exercises/11-Swap_digits/README.md +++ b/exercises/11-Swap_digits/README.md @@ -2,18 +2,20 @@ ## 📝 Instructions: -Given a two-digit integer, swap its digits and print the result. +1. Given a two-digit integer, swap its digits and print the result. +### Example input: -**Example input** -* 79 ++ 79 -**Example output** -* 97 +### Example output: -**Theory** -If you don't know how to start solving this assignment, please, review a theory for this lesson: ++ 97 + +## 💡 Hint: + ++ If you don't know how to start solving this assignment, please, review a theory for this lesson: https://snakify.org/lessons/integer_float_numbers/ -You may also try step-by-step theory chunks: ++ You may also try step-by-step theory chunks: https://snakify.org/lessons/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/12-Last_two_digits/README.es.md b/exercises/12-Last_two_digits/README.es.md index c3f5e77b..8d649e15 100644 --- a/exercises/12-Last_two_digits/README.es.md +++ b/exercises/12-Last_two_digits/README.es.md @@ -2,17 +2,20 @@ ## 📝 Instrucciones: -Dado un número entero mayor que 9, imprime sus últimos dos dígitos. +1. Dado un número entero mayor que `9`, imprime sus últimos dos dígitos. -**Ejemplo de entrada** -1234 +### Ejemplo de entrada: -**Ejemplo de salida** -34 ++ 1234 -**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: + ++ 34 + +## 💡 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/integer_float_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/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/12-Last_two_digits/README.md b/exercises/12-Last_two_digits/README.md index 297c086d..52b1c2e3 100644 --- a/exercises/12-Last_two_digits/README.md +++ b/exercises/12-Last_two_digits/README.md @@ -2,17 +2,20 @@ ## 📝 Instructions: -Given an integer greater than 9, print its last two digits. +1. Given an integer greater than `9`, print its last two digits. -**Example input** -1234 +### Example input: -**Example output** -34 ++ 1234 -**Theory** -If you don't know how to start solving this assignment, please, review a theory for this lesson: +### Example output: + ++ 34 + +## 💡 Hint: + ++ If you don't know how to start solving this assignment, please, review a theory for this lesson: https://snakify.org/lessons/integer_float_numbers/ -You may also try step-by-step theory chunks: ++ You may also try step-by-step theory chunks: https://snakify.org/lessons/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/13-Tens_digit/README.es.md b/exercises/13-Tens_digit/README.es.md index 7ee1e037..28cf6b39 100644 --- a/exercises/13-Tens_digit/README.es.md +++ b/exercises/13-Tens_digit/README.es.md @@ -2,23 +2,28 @@ ## 📝 Instrucciones: -Dado un entero, devuelve sus decenas. +1. Dado un entero, devuelve sus decenas. -**Ejemplo de entrada** -1234 +### Ejemplo de entrada: -**Ejemplo de salida** -3 ++ 1234 -**Ejemplo de entrada** -179 +### Ejemplo de salida: -**Ejemplo de salida** -7 ++ 3 -**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 entrada: + ++ 179 + +### Ejemplo de salida: + ++ 7 + +## 💡 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/integer_float_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/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/13-Tens_digit/README.md b/exercises/13-Tens_digit/README.md index ce4fb263..9390f988 100644 --- a/exercises/13-Tens_digit/README.md +++ b/exercises/13-Tens_digit/README.md @@ -2,23 +2,27 @@ ## 📝 Instructions: -Given an integer, return its tens digit. +1. Given an integer, return its tens digit. -**Example input** -1234 +### Example input: -**Example output** -3 ++ 1234 -**Example input** +### Example output: + ++ 3 + +### Example input: 179 -**Example output** -7 +### Example output: + ++ 7 + +## 💡 Hint: -**Theory** -If you don't know how to start solving this assignment, please, review a theory for this lesson: ++ If you don't know how to start solving this assignment, please, review a theory for this lesson: https://snakify.org/lessons/integer_float_numbers/ -You may also try step-by-step theory chunks: ++ You may also try step-by-step theory chunks: https://snakify.org/lessons/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/14-sum_of_digits/README.es.md b/exercises/14-sum_of_digits/README.es.md index 6bef059d..c2d1ca85 100644 --- a/exercises/14-sum_of_digits/README.es.md +++ b/exercises/14-sum_of_digits/README.es.md @@ -2,17 +2,20 @@ ## 📝 Instrucciones: -Dado un número de tres dígitos. Encuentra la suma de sus dígitos. +1. Dado un número de tres dígitos, encuentra la suma de sus dígitos. -**Ejemplo de entrada** -123 +### Ejemplo de entrada: + + - 123 -**Ejemplo de salida** -6 +### 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: +- 6 + +## 💡 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/integer_float_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/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/14-sum_of_digits/README.md b/exercises/14-sum_of_digits/README.md index 56e28b73..3f983eed 100644 --- a/exercises/14-sum_of_digits/README.md +++ b/exercises/14-sum_of_digits/README.md @@ -2,17 +2,19 @@ ## 📝 Instructions: -Given a three-digit number. Find the sum of its digits. +1. Given a three-digit number, find the sum of its digits. -**Example input** -123 +### Example input: -**Example output** -6 +- 123 -**Theory** -If you don't know how to start solving this assignment, please, review a theory for this lesson: +### Example output: +- 6 + +## 💡 Hint: + ++ If you don't know how to start solving this assignment, please, review a theory for this lesson: https://snakify.org/lessons/integer_float_numbers/ -You may also try step-by-step theory chunks: ++ You may also try step-by-step theory chunks: https://snakify.org/lessons/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/15-Digit_after_decimal_point/README,es.md b/exercises/15-Digit_after_decimal_point/README,es.md index 16d4dbec..f37520e4 100644 --- a/exercises/15-Digit_after_decimal_point/README,es.md +++ b/exercises/15-Digit_after_decimal_point/README,es.md @@ -2,17 +2,19 @@ ## 📝 Instrucciones: -Dado un número real positivo, devuelve su primer decimal (a la derecha del punto). +1. Dado un número real positivo, devuelve su primer decimal (a la derecha del punto). -**Ejemplo de entrada** -1.79 +### Ejemplo de entrada: -**Ejemplo de salida** -7 +- 1.79 -**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: + +- 7 +## 💡 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/integer_float_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/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/15-Digit_after_decimal_point/README.md b/exercises/15-Digit_after_decimal_point/README.md index 1ea036c5..8cd11671 100644 --- a/exercises/15-Digit_after_decimal_point/README.md +++ b/exercises/15-Digit_after_decimal_point/README.md @@ -2,17 +2,19 @@ ## 📝 Instructions: -Given a positive real number, return its first digit to the right of the decimal point. +1. Given a positive real number, return its first digit to the right of the decimal point. -**Example input** -1.79 +### Example input: -**Example output** -7 +- 1.79 -**Theory** -If you don't know how to start solving this assignment, please, review a theory for this lesson: +### Example output: + +- 7 +## 💡 Hint: + ++ If you don't know how to start solving this assignment, please, review a theory for this lesson: https://snakify.org/lessons/integer_float_numbers/ -You may also try step-by-step theory chunks: ++ You may also try step-by-step theory chunks: https://snakify.org/lessons/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/16-Car_route/README.es.md b/exercises/16-Car_route/README.es.md index 21d5c26a..9133fb3b 100644 --- a/exercises/16-Car_route/README.es.md +++ b/exercises/16-Car_route/README.es.md @@ -2,19 +2,25 @@ ## 📝 Instrucciones: -Un vehículo puede cubrir una distancia de N kilómetros por día. ¿Cuántos días le tomará cubrir una ruta de M kilómetros de longitud? -El programa recibe dos números: N y M. + Un vehículo puede cubrir una distancia de N kilómetros por día. + + 1. ¿Cuántos días le tomará cubrir una ruta de M kilómetros de longitud? -**Ejemplo de entrada** -* 700 -* 750 +El programa recibe dos números: `N` y `M`. -**Ejemplo de salida** -* 2 +### Ejemplo de entrada: -**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: +- 700 +- 750 + +### Ejemplo de salida: + +- 2 + +## 💡 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/integer_float_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/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/16-Car_route/README.md b/exercises/16-Car_route/README.md index b630d241..2db0d6a1 100644 --- a/exercises/16-Car_route/README.md +++ b/exercises/16-Car_route/README.md @@ -2,18 +2,25 @@ ## 📝 Instructions: -A car can cover distance of N kilometers per day. How many days will it take to cover a route of length M kilometers? The program gets two numbers: N and M. +A car can cover distance of N kilometers per day. -**Example input** -* 700 -* 750 +1. How many days will it take to cover a route of length M kilometers? -**Example output** -* 2 +The program gets two numbers: `N` and `M`. -**Theory** -If you don't know how to start solving this assignment, please, review a theory for this lesson: +### Example input: + +- 700 +- 750 + +### Example output: + +- 2 + +## 💡 Hint: + ++ If you don't know how to start solving this assignment, please, review a theory for this lesson: https://snakify.org/lessons/integer_float_numbers/ -You may also try step-by-step theory chunks: ++ You may also try step-by-step theory chunks: https://snakify.org/lessons/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/17-Century/README.es.md b/exercises/17-Century/README.es.md index 209fae6d..fd333611 100644 --- a/exercises/17-Century/README.es.md +++ b/exercises/17-Century/README.es.md @@ -2,17 +2,19 @@ ## 📝 Instrucciones: -Dado un año (como un entero positivo), encuentra su posición respectiva dentro del siglo. Ten en cuenta que, por ejemplo, el s.XX (siglo 20) comienza con el año 1901. +1. Dado un año (como un entero positivo), encuentra su posición respectiva dentro del siglo. Ten en cuenta que, por ejemplo, el s.XX (siglo 20) comienza con el año 1901. -**Ejemplo de entrada** -2000 +### Ejemplo de entrada: -**Ejemplo de salida** -20 +- 2000 -**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: + +- 20 +## 💡 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/integer_float_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/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/17-Century/README.md b/exercises/17-Century/README.md index 4908afd9..6626631c 100644 --- a/exercises/17-Century/README.md +++ b/exercises/17-Century/README.md @@ -2,17 +2,20 @@ ## 📝 Instructions: -Given a year (as a positive integer), find the respective number of the century. Note that, for example, 20th century began with the year 1901. +1. Given a year (as a positive integer), find the respective number of the century. Note that, for example, 20th century began with the year 1901. -**Example input** -2000 +### Example input: -**Example output** -20 +- 2000 -**Theory** -If you don't know how to start solving this assignment, please, review a theory for this lesson: +### Example output: + +- 20 + +## 💡 Hint: + ++ If you don't know how to start solving this assignment, please, review a theory for this lesson: https://snakify.org/lessons/integer_float_numbers/ -You may also try step-by-step theory chunks: ++ You may also try step-by-step theory chunks: https://snakify.org/lessons/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/18-Total_cost/README.es.md b/exercises/18-Total_cost/README.es.md index fa519492..b21e8fea 100644 --- a/exercises/18-Total_cost/README.es.md +++ b/exercises/18-Total_cost/README.es.md @@ -2,19 +2,25 @@ ## 📝 Instrucciones: -Un _cupcake_ cuesta D dólares y C centavos. Determina, cuántos dólares y centavos debería pagar una persona por N _cupcakes_. El programa recibe tres números: D, C, N. Debería devolver dos números: importe total en dólares y centavos +Un cupcake (quequito) cuesta `D` dólares y `C` centavos. -**Ejemplo de entrada** -* 10 -* 15 -* 2 +1. Determina, cuántos dólares y centavos debería pagar una persona por N _cupcakes_. -**Ejemplo de salida** -(20, 30) +El programa recibe tres números: `D`, `C`, `N`. Debería devolver dos números: importe total en dólares y los centavos -**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 entrada: + +- 10 +- 15 +- 2 + +### Ejemplo de salida*: + +- (20, 30) +## 💡 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/integer_float_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/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/18-Total_cost/README.md b/exercises/18-Total_cost/README.md index 47380d13..0e2131fe 100644 --- a/exercises/18-Total_cost/README.md +++ b/exercises/18-Total_cost/README.md @@ -2,19 +2,26 @@ ## 📝 Instructions: -A cupcake costs D dollars and C cents. Determine, how many dollars and cents should one pay for N cupcakes. A program gets three numbers: D, C, N. It should return two numbers: total cost in dollars and cents. +A cupcake costs `D` dollars and `C` cents. -**Example input** -* 10 -* 15 -* 2 +1. Determine, how many dollars and cents should one pay for N cupcakes. -**Example output** -(20, 30) +A program gets three numbers: `D`, `C`, `N`. It should return two numbers: total cost in dollars and cents. -**Theory** -If you don't know how to start solving this assignment, please, review a theory for this lesson: +### Example input: + +- 10 +- 15 +- 2 + +### Example output: + +- (20, 30) + +## 💡 Hint: + ++ If you don't know how to start solving this assignment, please, review a theory for this lesson: https://snakify.org/lessons/integer_float_numbers/ -You may also try step-by-step theory chunks: ++ You may also try step-by-step theory chunks: https://snakify.org/lessons/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/19-Day_of_week/README.es.md b/exercises/19-Day_of_week/README.es.md index 06dc77c7..341c1cca 100644 --- a/exercises/19-Day_of_week/README.es.md +++ b/exercises/19-Day_of_week/README.es.md @@ -2,17 +2,27 @@ ## 📝 Instrucciones: -Los días de la semana son enumerados como: 0 — Domingo, 1 — Lunes, 2 — Martes, ... , 6 — Sábado. Dado un entero K en el rango comprendido entre [1, 365], encuentra el número del día de la semana para el k-ésimo día del año si este año el 1 de enero ha sido Jueves. +Los días de la semana se enumeran así: -**Ejemplo de entrada** -1 +0 — Domingo +1 — Lunes +2 — Martes, ... +6 — Sábado. -**Ejemplo de salida** -4 +1. Dado un entero `K` en el rango comprendido entre [1, 365], encuentra el número del día de la semana para el k-ésimo día del año si este año el 1 de enero ha sido Jueves. -**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 entrada: + +- 1 + +### Ejemplo de salida: + +- 4 + +## 💡 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/integer_float_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/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/19-Day_of_week/README.md b/exercises/19-Day_of_week/README.md index c7541a61..e188279b 100644 --- a/exercises/19-Day_of_week/README.md +++ b/exercises/19-Day_of_week/README.md @@ -2,17 +2,27 @@ ## 📝 Instructions: -Days of week are numbered as: 0 — Sunday, 1 — Monday, 2 — Tuesday, ..., 6 — Saturday. An integer K in the range 1 to 365 is given. Find the number of day of week for K-th day of year provided that in this year January 1 was Thursday. +Days of week are numbered as: -**Example input** -1 +0 — Sunday +1 — Monday +2 — Tuesday, ... +6 — Saturday. -**Example output** -4 +1. An integer `K` in the range 1 to 365 is given. Find the number of day of week for K-th day of year provided that in this year January 1 was Thursday. -**Theory** -If you don't know how to start solving this assignment, please, review a theory for this lesson: +### Example input: + +- 1 + +### Example output: + +- 4 + +## 💡 Hint: + ++ If you don't know how to start solving this assignment, please, review a theory for this lesson: https://snakify.org/lessons/integer_float_numbers/ -You may also try step-by-step theory chunks: ++ You may also try step-by-step theory chunks: https://snakify.org/lessons/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/20-Digital_clock/README.es.md b/exercises/20-Digital_clock/README.es.md index a069d863..cd4cb55b 100644 --- a/exercises/20-Digital_clock/README.es.md +++ b/exercises/20-Digital_clock/README.es.md @@ -2,21 +2,26 @@ ## 📝 Instrucciones: -Dado un entero N como el número de minutos que pasa desde media noche, ¿cuántas horas y minutos se han mostrado en un reloj digital con formato 24 horas? +Dado un entero N como el número de minutos que pasa desde media noche, + +1. ¿cuántas horas y minutos se han mostrado en un reloj digital con formato 24 horas? El programa debería imprimir dos números: el número de horas (entre [0,23]) y el número de minutos (entre [0,59]). -Por ejemplo, si N = 150, entonces son 150 minutos que han pasado desde medianoche. Por ejemplo, ahora son las 2:30 am, así que el programa debería imprimir 2 30 +### Ejemplo de entrada: + +- 150 -**Ejemplo de entrada** -150 +### Ejemplo de salida: + +- (2, 30) + +Por ejemplo, si N = 150, entonces son 150 minutos que han pasado desde medianoche. Por ejemplo, ahora son las 2:30 am, así que el programa debería imprimir 2 30 -**Ejemplo de salida** -(2, 30) +## 💡 Pista: -**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/integer_float_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/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/20-Digital_clock/README.md b/exercises/20-Digital_clock/README.md index fffd4950..3c252484 100644 --- a/exercises/20-Digital_clock/README.md +++ b/exercises/20-Digital_clock/README.md @@ -2,21 +2,25 @@ ## 📝 Instructions: -Given the integer N - the number of minutes that is passed since midnight - how many hours and minutes are displayed on the 24h digital clock? +Given the integer N - the number of minutes that is passed since midnight + +1. how many hours and minutes are displayed on the 24h digital clock? The program should print two numbers: the number of hours (between 0 and 23) and the number of minutes (between 0 and 59). -For example, if N = 150, then 150 minutes have passed since midnight - i.e. now is 2:30 am. So the program should print 2 30. +### Example input: + +- 150 -**Example input** -150 +### Example output: -**Example output** -(2, 30) +- (2, 30) + +For example, if N = 150, then 150 minutes have passed since midnight - i.e. now is 2:30 am. So the program should print 2 30. +## 💡 Hint: -**Theory** -If you don't know how to start solving this assignment, please, review a theory for this lesson: ++ If you don't know how to start solving this assignment, please, review a theory for this lesson: https://snakify.org/lessons/integer_float_numbers/ -You may also try step-by-step theory chunks: ++ You may also try step-by-step theory chunks: https://snakify.org/lessons/integer_float_numbers/steps/1/ \ No newline at end of file