2. How do you grab '2' from [1,1,[1,2]]?
Answers
Answered by
1
Explanation:
- Use the code given below
def findelm(element, list):
x = 0
while x < len(list):
y = 0
while y < len(list[x]):
if list[x][y] == element: print "({},{})".format(x,y)
y = y + 1
x = x + 1
Similar questions