Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Sun Angle by Teja_002
def sun_angle(time_str):
time = time_str.split(":")
time[0], time[1] = int(time[0]), int(time[1])
if time[0] in range(0, 6) or time[0] in range(19, 24) or (time[0] == 18 and time[1] in range(1, 60)):
return "I don't see the sun!"
else:
return (time[0]-6)*15 + time[1]*0.25
March 14, 2021
Comments: