I am confused why the initial boolean value impacts the returned boolean value even when the hour is the same.

+24 votes

The boolean 'talking' describes if the parrot is making noise or not, so it does matter. If it is false and the parrot is not talking then the hour doesn't even matter. Only when 'talking' is true does the hour come into play.

+22 votes

It depends on whether the parrot is talking because if the parrot is talking, then you could be in trouble depending on the hour. You can be in the hours where you could be in trouble, but if the parrot is not talking, you are not in trouble. Don't forget your boolean operators!