If is_day is False, the code in the else statement switches the light on.

Make sure to type False.