I want to use "if not in" syntax in python but what I want to do is to if the element is found in list I want to get the index.
for example
if 3 not in [2,3,4]:
print "hello"
If 3 is found in list I want to get the index which in this case is 1.