I notice there is a comparison operator is not. Should I literally translate it into
!=
instead of
== not
<
python 2.7.3 documentation, 5.9. Comparisons:
The operators <, >, ==, >=, <=, and != compare the values of two objects.
and about operator is in the same chapter:
The operators is and is not test for object identity: x is y is true if and only if x and y are the same object. x is not y yields the inverse truth value.