f=lambda s:''.join(s[0:i]for i in range(len(s)+1)) print(f('harambe'))
Standard input is empty
hhaharharaharamharambharambe
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!