filer with lambda function and range : filter « Buildin Function « Python





filer with lambda function and range

filer with lambda function and range


print filter((lambda x: x > 0), range(-5, 5))
           
       

Related examples in the same category

1.Filter demo: lambda function insideFilter demo: lambda function inside
2.Compute prime numbers in PythonCompute prime numbers in Python
3.Functional Programming Tools: filterFunctional Programming Tools: filter