def intersect(seq,seq1):
res = []
for x in seq:
if x in seq1:
res.append(x)
return res
return res only returns ['s'] but with seq="spam" and seq1="scam" in the function call, why is it not returning ['s','a','m']?