Python one line


#1
return A.index(B) if B in A else -1