Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
clear lambda solution in Clear category for Sun Angle by PythonWithPI
sun_angle=lambda time: next(
round(15*(hour-6+minute/60),2)
if 6<=hour<18 or (hour==18 and minute==0) else
'I don\'t see the sun!'
for hour,minute in [map(int,time.split(':'))]
)
Feb. 17, 2019
Comments: