I have two lists of the same size, one is a list of strings, and the other a list of booleans (True, False) and I want to return a list of strings only if the index is True.
b_list = [True, False, True]
s_list = ['abc', 'sfsfsfsf', 'def']
want
s_list = ['abc','def']