Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Sun Angle by tokiojapan55
def sun_angle(time):
hour = float(time[:2]) + float(time[3:]) / 60.0
if hour < 6.0 or hour > 18.0:
return "I don't see the sun!"
return 180.0 * (hour - 6.0) / (18.0 - 6.0)
June 22, 2020