Run through the code to see logical operators in action!
Lines 4 and 5 are using 'and'. Notice that only line 4 prints True and line 5 prints False. This is because for 'and', both values must be True.
Line 7-9 are using 'or'. Notice that lines 7 and 8 print True while line 9 prints False. This is because only one value needs to be True.
Lastly, lines 11 and 12 are using 'not'. Line 11 prints False because the opposite of True is False. Line 12 prints True because the opposite of False is True.