If is_day is False, the code in the else statement switches the light on.
is_day
False
else
Make sure to type False.