4 lines
113 B
Python
4 lines
113 B
Python
|
def index_2d(myList, v):
|
||
|
for i, x in enumerate(myList):
|
||
|
if v in x:
|
||
|
return (i, x.index(v))
|