Skip to content

Commit ccd3690

Browse files
007-hours_and_minutes readmes fixed
1 parent 572f697 commit ccd3690

File tree

2 files changed

+25
-24
lines changed

2 files changed

+25
-24
lines changed
Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,33 @@
1-
# `08` Horas y minutos
1+
# `007` Hours and minutes
22

3-
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.
3+
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.
44

55
## 📝 Instrucciones:
66

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

9-
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)`
9+
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)`
1010

11-
## Ejemplo de entrada:
12-
```py
13-
3900 # 1
11+
## Ejemplo 1:
1412

15-
60 # 2
16-
```
17-
## Ejemplo de salida:
1813
```py
19-
(1, 5) # 1
14+
output = hours_minutes(3900)
15+
print(output) # (1, 5)
16+
```
2017

21-
(0, 1) # 2
18+
## Ejemplo 2:
19+
20+
```py
21+
output = hours_minutes(60)
22+
print(output) # (0, 1)
2223
```
23-
## 💡 Pista:
24+
25+
## 💡 Pistas:
2426

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

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

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

31-
[comment]: <Solution: (secs//3600, secs//60)>
33+
[comment]: <Solution: (secs//3600, secs//60)>

exercises/007-hours_and_minutes/README.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,28 @@
1-
# `08` Hours and Minutes
1+
# `007` Hours and Minutes
22

3-
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.
3+
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.
44

55
## 📝 Instructions:
66

77
1. Complete the function to return the expected result.
88

99
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)`.
1010

11-
## Example input:
11+
## Example 1:
1212

1313
```py
14-
3900 # 1
15-
16-
60 # 2
14+
output = hours_minutes(3900)
15+
print(output) # (1, 5)
1716
```
1817

19-
## Example output:
18+
## Example 2:
2019

2120
```py
22-
(1, 5) # 1
23-
24-
(0, 1) # 2
21+
output = hours_minutes(60)
22+
print(output) # (0, 1)
2523
```
26-
## 💡 Hint:
24+
25+
## 💡 Hints:
2726

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

0 commit comments

Comments
 (0)