I require the capability to do nested loops over various lists, for example:
A = [1,2,3]
B = [1,2,3]
C = [1,2,3]
for a in A:
for b in B:
for c in C:
#do something
What I want to have some code that can take the list of lists given by [A]+[B]+[C]
and loop over every sample path (i.e. the same thing as the above nested loops is doing).
It is okay if this code takes up 2 or 3 lines, since in my real world example I have not just A,B,C
but also D,E,F,G,...
so doing a nested loop as above is way too tedious.