Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
simple answer solution in Clear category for Sun Angle by akifumikendo0805
def sun_angle(time):
# 1 hour = 180/12 = 15 degrees
# 1 minute = 15/60 = 0.25 degrees
angle = (int(time.split(":")[0])-6)*180/12 + int(time.split(":")[1])*180/12/60
if angle < 0 or 180 < angle:
return "I don't see the sun!"
return angle
March 20, 2021