x = "abcd"for i in range(len(x)): print(i, end=' ')
8
0 1 2 3
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!