https://medium.com/@saikumarrachakonda/unlocking-efficiency-with-generator-comprehension-in-python-36beb9306a2c