I have a list where each element is a long string of characters with same length:
['KLGNVAGELQPFAPSED', 'MPDNVSFELQPPASJED', 'YYLNVSFEDQPPAPMED']
What I want to do is produce a new list, where each element is a string of characters in from same position of first list. You can also imagine same first list as this:
KLGNVAGELQPFAPSED
MPDNVSFELQPPASJED
YYLNVSFEDQPPAPMED
so I want new list to have elements from corresponding columns in first list, like this:
['KMY', 'LPY', 'GDL' 'NNN', ...]
What I tried is this:
for i in sub1:
for j in i:
pos.append(j)
pos.append('\n')
But then I can't manage to separate everything into separate lines.