What is the 'NOT' operator?

Asked by emeka_nwankwo · 8 months ago

1 Answer

23
amorebise · 8 months ago Top Answer

This is the 'opposite' operator. It turns True into False and vice-versa. 'If NOT raining, go outside.' It's a simple but powerful way to flip your logic.

Sometimes it's easier to think about what you don't want than what you do. I use this a lot when checking for errors in my code.

Log in to add a comment.