I'm trying to work in Prolog and I'm having trouble understanding how to solve my problem. What I am trying to do is create tuples of 3 elements each one from a different list. What I need to do is make a tuple of three for every possible combination out of three lists. My plan is to take the first element in two of the lists and then go thru every element in the third list creating a tuple for each. Then take the first element in the first list and the second element in the second list and go thru each element in the third list again. I understand this may be hard to follow. My overall goal is to create a bunch of tuples for each possible combinations from the three lists. The first element in the tuple is from the first list, the second element is from the second list, and the third element is from the third list.
I'm a beginner in prolog so I'm a little confused on what direction I need to go and how to write my thoughts in code. So any help would be greatly appreciated.
Thank you