Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
I see the sun :-) solution in Clear category for Sun Angle by martin.pilka
def sun_angle(time):
h, m = time.split(':')
mins = int(h)*60 + int(m)
if mins >= 6*60 and mins <= 18*60:
return round(((mins - 6*60) / ((18-6)*60)) * 180, 2)
else:
return "I don't see the sun!"
Jan. 16, 2019
Comments: