notEasy Playground

Logical NOT operator; inverts a boolean value

Python Playground
Output
Click "Run" to execute your code

'not' returns True if the value is falsy, False if truthy. It always returns a boolean, unlike 'and' and 'or'.

Challenge

Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?