There is a list consisting of line elements, which, in turn, consist of letters and a dash. Like that:
['---atcggctacgt--tactgcatgtca------', 'tc---------agtacgtactactgacgtca---', 'gcgtatagcgttga--------cgtgacgtacgg'] The task: to make the dashes at the beginning and at the end of line elements be replaced by dots, and the dashes standing in the middle of the lines remain unchanged. At the same time, you also need to get a list. Like this:
['...atcggctacgt--tactgcatgtca......', 'tc---------agtacgtactactgacgtca...', 'gcgtatagcgttga--------cgtgacgtacgg'] I believe that you have to convert each item into a separate list. But in general, I do not know how to solve this problem. I would be very grateful for the decision.