So I'm working on a project where I have a two dimensional array, and I need to find the location of an element placed on the second dimension, without knowing the index of it's first dimension.
I know that I can possibly iterate over the parts, checking to see if list[x].index(y)
isn't a value error, but that makes my code a lot less elegant looking, and I wanted to know if there's a better way to do it, like a 2d .index method?