fork download
  1. def is_odd(n):
  2. return n%2==1
  3. print(list(filter(is_odd,[1,2,3,4,5])))
  4.  
  5.  
  6. # your code goes here
  7. # your code goes here
Success #stdin #stdout 0.11s 14184KB
stdin
Standard input is empty
stdout
[1, 3, 5]