Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Sun Angle by berserk9779
def sun_angle(time):
hours, minutes = [int(s) for s in time.split(':')]
angle = ((hours - 6) * 15) + (minutes * 0.25)
if 0 <= angle <= 180:
return angle
return "I don't see the sun!"
Dec. 13, 2018