Hello everyone, I am very new in the programming field, and recently l had a problem of the output in the list to be repeated according to a value in another list, very appreciated for any hint or help
this is the result that I am trying to achieve
here is my try for the code
# Load the Python Standard and DesignScript Libraries
import sys
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
# The inputs to this node will be stored as a list in the IN variables.
List = IN[0]
Count = IN[1]
output = []
# Place your code below this line
for i in range(0,len(List)):
temp = []
for x in range(0,len(Count[i])):
temp1 = []
temp1.append(List[i][x])
temp.append(temp1)
output.append(temp)
# Assign your output to the OUT variable.
OUT = output