piece = "**\n *\n *"print '\n'.join('{0:^20}'.format(x, 'centered') for x in piece.split('\n'))
Standard input is empty
** * *
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!