import textwrapa = "AABBCC"print(textwrap.wrap(a, 2))
Standard input is empty
['AA', 'BB', 'CC']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!