Python 3 program to find time for a given angle.


Topic: Python 3 program to find time for a given angle.

Solution

def calcAngle(hh, mm):
    hour_angle = 0.5 * (hh * 60 + mm)
    minute_angle = 6 * mm
    angle = abs(hour_angle - minute_angle)
    angle = min(360 - angle, angle)
    return angle



List all Python Programs