Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. NewL = [(1.1,[01,02]),(1.2,[03,04]),(1.3,[05,06])]
  2.  
  3. L = [[01,02],[03,04],[05,06]]
  4.  
  5. OutputList = [1.1,1.2,1.3]
  6.  
  7. for val in NewL:
  8. if NewL[1] == [05,06]:
  9. print NewL[0]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement