Computer Science, asked by adityasinghbaddi, 4 months ago

2. How do you grab '2' from [1,1,[1,2]]?​

Answers

Answered by Mister360
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