Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Time + 15 Minutes
- hours = int(input())
- minutes = int(input())
- total_minutes = hours * 60 + minutes + 15
- hours = total_minutes // 60
- minutes = total_minutes % 60
- if hours >= 24:
- hours -= 24
- print(f'{hours}:', end='')
- if minutes < 10:
- print(f'0{minutes}')
- else:
- print(minutes)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement