Say I have a list and I want to count how many times a partial string appears "AB" Is there a way to make count() work? I want to try and make this as efficient as possible without breaking the code down into a loop.
my_list = ["ABC", "ABD", "DCF", "ARC", "AVB", "ABG"]
Correct output = 3