Program not working as expected.. Some one help me by modifying my code

python Code:

## To check S2 characters are there in S1 or not.
S1=list("bothofthemWhatisthetimecomplexitydoopers")
S2=list("dooper")
D1={}for i in S1:
if i in D1:
D1[i]=D1[i]+1else:
D1[i]=1for j in S2:
print j,S2
if j in D1:
S2.remove(j)else:
print"not in list"iflen(S2)==0:
print"OK"[CODE]