https://medium.datadriveninvestor.com/mastering-the-filter-function-in-python-a-comprehensive-guide-de7d8c462bc2