Code Block - Combine different size lists to tiered list

having a hard time trying to figure this out I am trying to pass x,y, and z values into a code block and get a list such than the highest level is based on the number of z values and the interior level is based on the number of x and y values. Number of x and y values will always be the same.

any suggestions based on the attached code block? Thanks

The result I am trying to get from the above would be:


-[0] List






-[1] List






figured it out I wasn’t declaring x,y,z as arrays in the definition.