0
Что добавить в код?
надо вставить пропущенную функцию. не могу понять какую. https://code.sololearn.com/cZO28k6R971Z/?ref=app
1 Antwort
+ 1
I think you are looking for the function filter(b,l) whose arguments are a boolean function that acts on the elements of b. the element of b is produced (as in an iterator) when the function is true. list() is needed to convert the result of map (a map object) to a list
print(list(filter(a,b))) # output must be [0,2,3,4]