L = [0, ['~', '~', '~'], 1, ['~', '~', '~'], 2, ['~', '~', '~'] ]print('\n'.join("%s %s" % (i, ' '.join(lst)) for i, lst in zip(*[iter(L)]*2)))
Standard input is empty
0 ~ ~ ~ 1 ~ ~ ~ 2 ~ ~ ~
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!