Skip to content
Prev Previous commit
Next Next commit
007-hours_and_minutes readmes fixed
  • Loading branch information
tommygonzaleza committed Apr 14, 2022
commit ccd36908abf8119e680efb9e0d11d48f9302c3e2
28 changes: 15 additions & 13 deletions exercises/007-hours_and_minutes/README.es.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
# `08` Horas y minutos
# `007` Hours and minutes

En este ejercicio vamos a suponer que es medianoche, queremos que con la función `hours_minutes` que hemos provisto para tí nos digas cuánto tiempo han pasado desde entonces con los segundos que se introduzcan como parámetro.
En este ejercicio vamos a suponer que es medianoche, queremos que con la función `hours_minutes` que hemos previsto para tí, nos digas cuánto tiempo ha pasado desde entonces con los segundos que se introduzcan como parámetro.

## 📝 Instrucciones:

1. Completa la función para que retorne el resultado esperado.

2. Realiza dos calculos con los segundos que se pasan por parámetro en la función para que uno calcule la hora segun segundos que han pasado y el otro para saber los minutos `(hora , minutos)`
2. Realiza dos calculos con los segundos que se pasan por parámetro en la función para que uno calcule la hora según los segundos que han pasado y el otro para saber los minutos `(hora , minutos)`

## Ejemplo de entrada:
```py
3900 # 1
## Ejemplo 1:

60 # 2
```
## Ejemplo de salida:
```py
(1, 5) # 1
output = hours_minutes(3900)
print(output) # (1, 5)
```

(0, 1) # 2
## Ejemplo 2:

```py
output = hours_minutes(60)
print(output) # (0, 1)
```
## 💡 Pista:

## 💡 Pistas:

+ Recuerda cuantos segundos hay en una hora (3600) y cuantos segundos en un minuto (60).

+ 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/

[comment]: <Solution: (secs//3600, secs//60)>
[comment]: <Solution: (secs//3600, secs//60)>
21 changes: 10 additions & 11 deletions exercises/007-hours_and_minutes/README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
# `08` Hours and Minutes
# `007` Hours and Minutes

In this exercise we are going to suppose that it is midnight, we want that with the function `hours_minutes` that we have provided for you tell us how much time has passed since then with the seconds that are introduced as parameter.
In this exercise we are going to suppose that it is midnight, we want that with the function `hours_minutes` that we have provided to you, you were able to tell us how much time has passed since then with the seconds that are introduced as parameter.

## 📝 Instructions:

1. Complete the function to return the expected result.

2. Perform two calculations with the seconds that are passed by parameter in the function so that one calculates the time according to the seconds that have passed and the other to know the minutes `(hour , minutes)`.

## Example input:
## Example 1:

```py
3900 # 1

60 # 2
output = hours_minutes(3900)
print(output) # (1, 5)
```

## Example output:
## Example 2:

```py
(1, 5) # 1

(0, 1) # 2
output = hours_minutes(60)
print(output) # (0, 1)
```
## 💡 Hint:

## 💡 Hints:

+ Remember how many seconds there are in an hour (3600) and how many seconds in a minute (60).

Expand Down