Phyton List

Hello. I wanted to make the list of point with phyton. But It not works. Thanks.

# Phython-Standard- und DesignScript-Bibliotheken laden
import sys
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *

# Die Eingaben für diesen Block werden in Form einer Liste in den IN-Variablen gespeichert.
dataEnteringNode = IN

px = IN[0]
py = IN[1]
pz = []
# Code unterhalb dieser Linie platzieren
for i in px:
    x = abs(px)
    pz.append(x)

# Weisen Sie Ihre Ausgabe der OUT-Variablen zu.
OUT = pz

You’ll have to use preformatted text (</>) when pasting code so that we can understand the context. It would also be helpful to know the error you’re getting.

Besides that, it looks like you’re not dealing with the correct value in your loop. You loop over i in px but then you round the value of px instead of i. That means you’re trying to round a list instead of the value in the list.