Часовая стрелка

1
2
3
4
5
6
7
value = float(input())
hours, minutes = 0, 0
if value >= 0 and value < 360:
hours = value // 30
minutes = (value % 30 * 2) // 1
print(f'It is {int(hours)} hours {int(minutes)} minutes.')