filter on list python code example Example: js filter method in python list( filter((lambda x: x < 0), range(-10,5)))