0
L=[[2, 5,1],[82,10,50][39,29,17]].

How to display the values in the second list greater than the values in the third list.

I have tried this method.

L=[[2, 5,1],[82,10,50][39,29,17]]
if(L[1][0]>L[2][0]):
    print(L[1][0]) 
if(L[1][1]>L[2][1]):
    print(L[1][1])
if(L[1][2]>L[2][2]):
    print(L[1][2])

The output should be 82,50

But how to solve this with loop.

Cubix48
  • 2,404
  • 1
  • 3
  • 15

0 Answers0