f=lambda s:s and f(s[:-1])+s[-1]*len(s) print f('Why')print f('SKype')print f('LobbY')print f('A and B')
Standard input is empty
Whhyyy SKKyyyppppeeeee LoobbbbbbbYYYYY A aaannnnddddd BBBBBBB
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!