Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Very clear solution in Clear category for Sun Angle by mindaugas.dadurkevicius
def sun_angle(time):
hours = int(time[:2]) + int(time[3:]) / 60
if (hours < 6) or (hours > 18):
return "I don't see the sun!"
else:
return (hours - 6)/12 * 180
July 13, 2018
Comments: