I've gotten some great responses to my questions here, so I'm really grateful for this resource of programmers on this website. I've been working on an algorithm and am almost completed with it, but I'm finding out the very last steps are the most difficult for me because they require very specific things and the wealth of information is so difficult to search through- especially now that my brain is completely fried from learning python (my first language) from scratch a little over a week ago and coding nearly everyday since full time. So, my new, and possibly last (but never say never) problem I need help solving in python is:
The general problem is: How can I return a key value from a list? I'm sure there's something easy I'm overlooking, but the devil is in the details.
The specific problem I'm facing is: Given a nested list L1=[[a,b,c],[d,e,f],[e,a,g]] and value=x, if x=a, where in the list does it occur? so for a=L1 and a=L1, the answer should be [[,],[,]] or actually- we can ignore the big nest- i just need an answer of [,] and nothing more.