How would you say does not equal?
if hi == hi:
elif hi (does not equal) bye:
print "no hi"
!= (preferred) or
<> (deprecated). See comparison operators. For comparing object identities, you can use the keyword
is and its negation
1 == 1 # -> True 1 != 1 # -> False 1 <> 1 # -> False  is  #-> False (distinct objects) a = b = ; a is b # -> True (same object)