For a given string I want to make groups two by two, but when the first group is created I want to delete the first letter and then group those.
Like this:
Initial string: 'ACGT'
Goal: ['AC','CG','GT']
So I did this code:
for i in range(0, len(seq_example), n):
out = [seq_example[i:i + n(len(seq_example) - 1)]]
However, there is one missing combination. Can somemone help me please!