fork download
  1. g = (2*i for i in range(5))
  2.  
  3. l = list(g)
  4.  
  5. print(l)
Success #stdin #stdout 0.01s 27720KB
stdin
Standard input is empty
stdout
[0, 2, 4, 6, 8]