Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- listA = IN[0]
- listB = IN[1]
- Outlist = list()
- for i in range(len(listB)):
- for j in range(len(listA)):
- if listB[i] == listA[j]:
- if listA.count(listB[i])==1:
- Outlist.append(j)
- break
- else:
- Outlist.append(j)
- else:
- continue
- OUT = Outlist
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement