Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Simple solution in Clear category for Sun Angle by ermichin158
def sun_angle(time):
hours, minutes = list(map(int, time.split(':')))
if hours < 6 or hours > 18 or (hours == 18 and minutes > 0):
return 'I don\'t see the sun!'
angle = ((hours - 6) + minutes / 60) * 15
return angle
Aug. 16, 2018