Given two lists:
chars = [\'ab\', \'bc\', \'ca\'] words = [\'abc\', \'bca\', \'dac\', \'dbc\', \'cba\']
how can you use list comprehensions to
Why so complex? This works as well:
[words[x] for x in range(len(chars)) if chars[x] in words[x]]