fork(1) download
  1. f=lambda s:s and f(s[:-1])+s[-1]*len(s)
  2.  
  3. print f('Why')
  4. print f('SKype')
  5. print f('LobbY')
  6. print f('A and B')
Success #stdin #stdout 0.01s 9016KB
stdin
Standard input is empty
stdout
Whhyyy
SKKyyyppppeeeee
LoobbbbbbbYYYYY
A  aaannnnddddd      BBBBBBB