Sep-19-2019, 05:21 PM
(This post was last modified: Sep-19-2019, 05:24 PM by YoungGrassHopper.)
I found a solution, I will set this thread to solved, thanks ichabod801 for your input
dna = AAABBBCCCDDD x=3 chunks = [dna[y-x:y] for y in range(x, len(dna)+x,x)] print(chunks)