![Rodrigo 🐍🚀 on Twitter: "Do you use Python 🐍? I often like to suggest people get acquainted with the function `itertools.product`. Handy, for example, to flatten 2 or more nested `for` loops. Rodrigo 🐍🚀 on Twitter: "Do you use Python 🐍? I often like to suggest people get acquainted with the function `itertools.product`. Handy, for example, to flatten 2 or more nested `for` loops.](https://pbs.twimg.com/media/FNrTEeRWYAcDukH.jpg)
Rodrigo 🐍🚀 on Twitter: "Do you use Python 🐍? I often like to suggest people get acquainted with the function `itertools.product`. Handy, for example, to flatten 2 or more nested `for` loops.
![itertools.product() in Python. Now, it's my belief that Python is a… | by Shivam Dutt Sharma | Analytics Vidhya | Medium itertools.product() in Python. Now, it's my belief that Python is a… | by Shivam Dutt Sharma | Analytics Vidhya | Medium](https://miro.medium.com/v2/resize:fit:1400/1*Zq4DNDQbaFgxTnoKaLd0Ww.png)
itertools.product() in Python. Now, it's my belief that Python is a… | by Shivam Dutt Sharma | Analytics Vidhya | Medium
![Rodrigo 🐍🚀 on Twitter: "Do you know what's a good replacement for nested `for` loops in Python 🐍 ? `itertools.product` is! With `product` you can combine all items of one sequence with Rodrigo 🐍🚀 on Twitter: "Do you know what's a good replacement for nested `for` loops in Python 🐍 ? `itertools.product` is! With `product` you can combine all items of one sequence with](https://pbs.twimg.com/media/E8w1cgiWUAQx4Kv.png:large)