I have a piece of code that loads 2 lists using this code:
with open('blacklists.bls', 'r') as f: L = [dnsbls.strip() for dnsbls in f] with open('ignore.bls', 'r') as f2: L2 = [ignbls.stip() for ignbls in f2]
dnsbls contains:
list1 list2 list3
ignbls contains
list2
What I want to do is combine dnsbls and ignbls and then delete any lines that appear more than once and print them with "for". I thought something like:
for combinedlist in L3: print combinedlist
What in the example aboe will print:
list1 list3
source share