Skip to content
Prev Previous commit
solution.hide.py added to the 7th exercise
  • Loading branch information
tommygonzaleza committed Apr 14, 2022
commit 71e14ad963de3772713650c532bc2d2a0d9e177b
9 changes: 9 additions & 0 deletions exercises/007-hours_and_minutes/solution.hide.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#Complete the function to calculate how many hours and minutes are passed since midnight.
def hours_minutes(secs):
minutes = secs // 60
hours = minutes // 60
minutes = minutes % 60
return (hours, minutes)

#Invoke the funtion and pass any interger as its argument.
print(hours_minutes(3900))