User:ChaseHult/Filter (higher-order function)

Ways to format list:

1, 2, …, 10

2, 4, …, 10

1 to 10

Even numbers from 2 to 10

1, 2, 3, 4, 5, 6, 7, 8, 9, 10

2, 4, 6, 8, 10

[1...10]

[2, 4…10]

Use right number of spaces

This function express that if $$x$$ is even the return value is $$True$$, otherwise it's $$False$$. This is the predicate.

https://docs.python.org/3/library/functions.html#filter