The where method applies the predicate lambda expression as a filter in the
Enumerable collection. This method is not an executing function.
predicate: lambda expression that is used to test each element for a condition.
Enumerable object that contains elements from the input sequence that satisfy the condition.
from py_linq import Enumerable marks = Enumerable([25, 49, 50, 80, 90]) passing = marks.where(lambda x: x >= 50) # results in [50, 80, 90]