یکی از لایبری هایی که به درد میخوره یاد گیریش moreitertools هست.

https://github.com/more-itertools/more-itertools

البته قبلش باید رو خود built-in های پایتون مسلط باشین!یک سرچ کنید تو گوگل جلوش یک realpython بذارین کلی مقاله راجب همون موضوع میاره از realpython که عالیه :)

https://realpython.com/python-itertools/

https://realpython.com/python-zip-function/

https://realpython.com/python-collections-module/

https://realpython.com/python-filter-function/

https://realpython.com/python-reduce-function/

https://realpython.com/python-map-function/