Skip to content

Commit e6561bf

Browse files
authored
Update README.md
1 parent 95d6272 commit e6561bf

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed
Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,27 @@
11
# `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 to you, you were able to tell us how much time has passed since then with the seconds that are introduced as parameter.
3+
Complete the function `hours_minutes` to transform the given number of seconds into hours and minutes, indicating how much time has passed since then.
44

55
## 📝 Instructions:
66

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

9-
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)`.
9+
2. Perform two calculations based on the input parameter representing seconds. One calculation should determine the time elapsed in hours, while the other should indicate the time in minutes `(hours, minutes)`.
1010

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

1313
```py
1414
output = hours_minutes(3900)
15-
print(output) # (1, 5)
15+
print(output) # (1, 5)
1616
```
1717

18-
## Example 2:
18+
## 📎 Example 2:
1919

2020
```py
2121
output = hours_minutes(60)
22-
print(output) # (0, 1)
22+
print(output) # (0, 1)
2323
```
2424

25-
## 💡 Hints:
25+
## 💡 Hint:
2626

2727
+ Remember how many seconds there are in an hour (3600) and how many seconds in a minute (60).
28-
29-
+ 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/
30-
31-
+ You may also try step-by-step theory chunks: https://snakify.org/lessons/print_input_numbers/steps/1/
32-
33-
34-
[comment]: <Solution: (secs//3600, secs//60)>

0 commit comments

Comments
 (0)