[+] Microwave time

This commit is contained in:
Hykilpikonna
2021-10-31 20:44:15 -04:00
parent 55e44351ff
commit 5ca53a9f66
+7
View File
@@ -0,0 +1,7 @@
# Output two different ways you can enter a time duration on the microwave
if __name__ == '__main__':
while True:
s = int(input())
print(f'{s // 60}:{s % 60:02}')
if s >= 60:
print(f'{s // 60 - 1}:{s - (s // 60 - 1) * 60:02}')