map reduce and filter functions in python
{16, 1, 4, 9}
map reduce and filter functions in python
{16, 1, 4, 9}
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))
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))
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us