I have a subset of strings and want to find its indices in the set which contain all strings, like
subset = ['a','b','d']
and the set of strings is['a','b','c','d','e','f','g']
.
The function should take input the subset and set of strings and return indices of subset, [0,1,3]
.
I tried using a for loop, it is taking a lot of time. Is there a python function of any library which can do this task.