Python check list inside other list
I need to run through 2 lists (those lists are 'lists of lists') each item
on those lists contain [path,md5] and make an if statement that works like
this: (logically)
save_list = []
for small_list2 in big_list2:
for small_list1 in big_list1:
if small_list2[0] == small_list1[0] and small_list2[1] !=
small_list2[1]:
save_list.append(small_list2)
Is this the way? And, there is a better (maybe recursive way) to do that??
Thanks !!
No comments:
Post a Comment