I have 2 list
A=['1','2','3','4','5','6','7','8','t','e','e','e','r','t',','w','w',','r','r']
B=['5','6','7','8','t','e','e','e','r','t',','w','w',','r','r','d','f','w','w','r','r]
I have to extract all elements of A which is not present in B
I am trying
final=[]
for i in A:
for j in B:
if i!= j :
final.append(i)
still i am not getting what i want