How would you say does not equal?
if hi == hi:
elif hi (does not equal) bye:
print "no hi"
Is there something equivalent to == that means "not equal"?
Use !=. See comparison operators. For comparing object identities, you can use the keyword isand its negation is not.
1 == 1 # -> True
1 != 1 # -> False
 is  #-> False (distinct objects)
a = b = ; a is b # -> True (same object)
The keywords is and is not are ...READ MORE
raw_input is not supported anymore in python3. ...READ MORE
Thread is the smallest unit of processing that ...READ MORE
You can use it to raise errors ...READ MORE
suppose you have a string with a ...READ MORE
if you google it you can find. ...READ MORE
colors = ['red', 'green', ...READ MORE
can you give an example using a ...READ MORE
ou are using Python 2.x syntax with ...READ MORE
Python dictionary is a built-in type that supports ...READ MORE
Already have an account? Sign in.