Jan-08-2024, 07:34 PM
place the parenthesis around the complex condition like
note: you don't need guard == True, as the condition will be true without.
if (daytime < 7 or daytime > 17) and guard:
note: you don't need guard == True, as the condition will be true without.