fork download
  1. f=lambda n,x:n and f(n-1,sum(zip(x,x[len(x)/2:]),()))or x
  2.  
  3. print(f(2,[]))
Runtime error #stdin #stdout #stderr 0.02s 9984KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 3, in <module>
  File "./prog.py", line 1, in <lambda>
TypeError: slice indices must be integers or None or have an __index__ method