How to calculate the Cartesian product of multiple lists in Python?

I’m learning Python in which I get a task is to find the cartesian product of multiple lists. I have somehow been able to find the code below:

I believe there are many other efficient alternative methods available that help us in calculating the cartesian product of multiple lists. It will be great if you share any.