I really can’t find out. I tried using itertools, tried all kinds of loops, but still I cannot achieve what I want. This is what I need:
I have a list, for example:
list = [("car", 2), ("plane", 3), ("bike", 1)]
This list is different every time, every time there can be 5 different elements in it, and I need to get something like this:
car1, plane1, bike1
car1, plane2, bike1
car1, plane3, bike1
car2, plane1, bike1
car2, plane2, bike1
car2, plane3, bike1
I am really lost. Obviously, this will probably be something very simple, but I cannot solve it.