Answers for "map reduce and filter functions in python"

0

map reduce and filter functions in python

{16, 1, 4, 9}
Posted by: Guest on May-09-2022
0

map reduce and filter functions in python

def function(a):
    return a*a
x = map(function, (1,2,3,4))  #x is the map object
print(x)
print(set(x))
Posted by: Guest on May-09-2022
0

map reduce and filter functions in python

def func(x):
    if x>=3:
        return x
y = filter(func, (1,2,3,4))  
print(y)
print(list(y))
Posted by: Guest on May-09-2022

Code answers related to "map reduce and filter functions in python"

Python Answers by Framework

Browse Popular Code Answers by Language