I want to find the index of values that contain a keyword in an array.
For example:
A = ['a1','b1','a324']
keyword = 'a'
I want to get [0,2]
, which is the index of a1, a324
I tried this list(filter(lambda x:'a' in x, A))
But get ['a1','a324']
rather than the index.