fork(1) download
  1. somelist = [125, -25, 5, -1]
  2.  
  3. print([int(x >= 0) for x in somelist])
Success #stdin #stdout 0.01s 5760KB
stdin
Standard input is empty
stdout
[1, 0, 1, 0]