1
0
Fork 0
Verteiltesystheme-game-of-life/Code/helpers.py
verde4321 d5d4d47772 init
2022-03-20 09:47:49 +01:00

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))