Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
minutes solution in Clear category for Sun Angle by t4d3uszk
def sun_angle(time):
#replace this for solution
minutes = 60 * int(time[:2]) + int(time[3:])
if minutes < 60 * 6 or minutes > 60 * 18:
return "I don't see the sun!"
"""
12 hours => 180.00 deg
6 hours => 90.00 deg
1 hour => 15.00 deg
1 minute => 0.25 deg
"""
angle = minutes * 0.25 - 90
return angle
July 21, 2019
Comments: