Python konvertieren Saiten in Stücke
s = '1234567890'
o = []
while s:
o.append(s[:2])
s = s[2:]
Elated Echidna
s = '1234567890'
o = []
while s:
o.append(s[:2])
s = s[2:]
from textwrap import wrap
print(wrap('string', 2))
# splits 'string' into a list of 2 char strings