I have two lists that I want to remove the same words from the lists. I use this code but it doesn't work:
a = ['go ing', 'watch TV', 'ice cream', 'sit ting', 'note book']
b = ['go ing', 'watching TV', 'ice cream', 'sit ing', 'notebook']
if a[i] == b[i]:
try:
a.remove(i)
b.remove(i)
except:
pass
My desired output is a = ['watch TV', 'sit ting', 'note book']
. Could anyone help me?