A clock-style timer in a Zynga game displays a 12-hour analog clock. Given the hour and minute shown, calculate the smaller angle in degrees 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), where hour is an integer from 0 through 11 and minute is an integer from 0 through 59. Return the smallest angle between the two hands as a non-negative number. Return an integer when the result is mathematically integral; otherwise, return a floating-point value.
The hour hand completes 360 degrees in 12 hours, and the minute hand completes 360 degrees in 60 minutes.
def clock_angle(hour, minute):