Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
mathematics solution in Clear category for Sun Angle by fishsouprecipe
def sun_angle(time):
time = int(time[:2]) * 60 + int(time[3:])
zero = 6 * 60
angle = (time - zero) * (360 / 24 / 60)
return angle if 0 <= angle <= 180 else "I don't see the sun!"
March 4, 2020
Comments: