SyntaxFix
Write A Post
Hire A Developer
Questions
It's about your way of reading it. not operator is dynamic, that's why you are able to apply it in
not
if not x == 'val':
But != could be read in a better context as an operator which does the opposite of what == does.
!=
==