Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Clock Angle by ssk8
def clock_angle(time):
h, m = [int(t) for t in time.split(':')]
angles = [((h % 12) + m / 60) * 30, m * 6]
angles.sort()
return min((angles[1]-angles[0]), (angles[0]-angles[1]+360))
Feb. 10, 2017