s
а не писать)
Size: a a a
s
NF
NL
NL
NL
NL
OM
smeecsrseatg e
OM
from itertools import zip_longest
def none2space(char):
return char or ' '
message = 'secret message'
sm = ''.join([ none2space(с1) + none2space(с2) for с1, с2 in zip_longest(*message.split(maxsplit=1))])
OM
sm[::2] + sm[1::2]
OM
NL
OM
for i in range(len(sm) // 2):
print(sm[i*2], sm[i*2+1])
OM
NL
БГ
first = ""
second = ""
for f, s in zip(w[:-1], w[1:]):
first += f
second += s