This is my first Python script.
It works fine with one element but don’t work with list.
Could someone explain how to fix it?
import clr
clr.AddReference(‘ProtoGeometry’)
import math
from Autodesk.DesignScript.Geometry import *
#The inputs to this node will be stored as a list in the IN variables.
dataEnteringNode = IN
X=IN[0]
D=IN[1]
R=round(X,D)
#Assign your output to the OUT variable.
OUT = R