We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02ab803 commit bf5ce84Copy full SHA for bf5ce84
exercises/007-hours_and_minutes/solution.hide.py
@@ -1,8 +1,8 @@
1
-def hours_minutes(secs):
+def hours_minutes(seconds):
2
# Your code here
3
- minutes = secs // 60
4
- hours = minutes // 60
5
- minutes = minutes % 60
+ hours = seconds // 3600
+ remaining_seconds = seconds % 3600
+ minutes = remaining_seconds // 60
6
return (hours, minutes)
7
8
# Invoke the function and pass any integer as its argument
0 commit comments