Skip to content

Commit 71e14ad

Browse files
solution.hide.py added to the 7th exercise
1 parent ccd3690 commit 71e14ad

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#Complete the function to calculate how many hours and minutes are passed since midnight.
2+
def hours_minutes(secs):
3+
minutes = secs // 60
4+
hours = minutes // 60
5+
minutes = minutes % 60
6+
return (hours, minutes)
7+
8+
#Invoke the funtion and pass any interger as its argument.
9+
print(hours_minutes(3900))

0 commit comments

Comments
 (0)