fork download
  1. a=[1,2,3,1,4,1,5]
  2. print a
  3.  
  4. b=[i for i in a if i!=1]
  5. print b
  6.  
  7.  
Success #stdin #stdout 0.01s 8968KB
stdin
Standard input is empty
stdout
[1, 2, 3, 1, 4, 1, 5]
[2, 3, 4, 5]