def is_odd(n): return n%2==1print(list(filter(is_odd,[1,2,3,4,5]))) # your code goes here# your code goes here
Standard input is empty
[1, 3, 5]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!