Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Sun Angle by urakin1981
def sun_angle(time):
hours, minutes = map(int, time.split(':'))
angle = round((hours - 6 + minutes / 60) / 12 * 180, 2)
if 0 <= angle <= 180:
return angle
return "I don't see the sun!"
Dec. 31, 2018