A Deem travel itinerary may display local departure times in a compact analog-clock preview. Given a valid 12-hour clock time, calculate the smaller angle between the hour and minute hands.
The hour hand moves continuously as the minutes advance. For example, at 3:30, the hour hand is halfway between 3 and 4, not exactly on 3.
Implement clock_angle(hour, minute):
hour, an integer from 1 through 12, and minute, an integer from 0 through 59.The answer must be in the range [0, 180].
def clock_angle(hour, minute):