I'm iterating over a list that I'm trying to extract data from that looks like this:
for i in lst: 
    print(i.split('-'))
... output
['a', 'doa', 'a', 'h5t']
['a', 'rne']
['a', 'ece']
['a', 'ece']
['a', 'tnt', 'c', 'doa', 'd', 'nvc', 'a', 'nnm', 'a', 'h5t']
['a', 'tps']
My goal is to extract all the strings within each list that 3 characters long. If I do
len(i.split('-')) 
in which case the above would look like:
4
2
2
2
10
2
in the loop than I just get the length of each unique string in the list. My question is how can I get a count of the characters in each string in each list?
EDIT:
The output should look like:
['doa', 'h5t']
['rne']
['ece']
['ece']
['tnt', 'doa', 'nvc', 'nnm', 'h5t']
['tps']

