def index_2d(myList, v): for i, x in enumerate(myList): if v in x: return (i, x.index(v))