Providence India’s scheduling tools display times in both digital and analog formats. Given a valid 12-hour clock time, compute the smaller angle between the hour and minute hands in degrees.
The hour hand moves continuously as minutes pass. For example, at 3:30, it is halfway between 3 and 4 rather than exactly on 3.
Implement clock_angle(hour, minute), where hour is an integer from 1 through 12 and minute is an integer from 0 through 59. Return the smaller angle between the two hands as a number of degrees. The result may be an integer or a floating-point value, and must be in the inclusive range [0, 180].
def clock_angle(hour, minute):