Code:
>>> l = ['a','b','c','d','e','f','g','h', 'i', 'j','k']
>>> l2 = ['d', 'e', 'i']
>>> index=0
>>> while index<len(l):
	if l[index] not in l2:
		l.remove(l[index])
	else:
		index= index+1

		
>>> print l
['d', 'e', 'i']
hi ,
this code will give the correct answer.
In your code when you use for loop after...