Guest User

Untitled

a guest
Dec 11th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. flat_list = [['a','b'], ['a','c'], ['b','c']]
  2. final_list = []
  3. new_list=["c","a"]
  4. for ele in new_list:
  5. for item in flat_list:
  6. for i in item:
  7. if ele in i:
  8. final_list+=item
Add Comment
Please, Sign In to add comment