Filter Function Flashcards

1
Q

Filter()

A

Creates a collection of elements from an iterable for which a function returns true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you write the filter function

A

Filter(function,iterable)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does the function argument do?

A

Defines what aspects to keep

How well did you know this?
1
Not at all
2
3
4
5
Perfectly