fork(2) download
  1. from itertools import chain
  2. A = [[1,2], [3,4]]
  3. print list(chain(*A))
  4.  
Success #stdin #stdout 0.09s 10840KB
stdin
Standard input is empty
stdout
[1, 2, 3, 4]