So my intention is to iterate over lists in lists with map, filter and lambda e.g.:
[ [33,3,3,0] , [34,1,0,4] ] should result in [ [33,3,3] , [34,1,4] ]
def no_zeros(lst):
a=map(filter(lambda x:(y==0 for y in x) ,lst),lst)
print (list(a))
#(says that filter is not callable)
I know that this code won't work but i do not know what exactly i do wrong since i'm still kind of new to lambda,etc.I already tried different stuff , like moving the filter after the lambda,but that did not seem to work either . Im gratefull for any kind of tipps or help.