Hello, I’m new with Python script, and I dont understand why my code isnt running:
# Charger les bibliothèques DesignScript et Standard Python
import sys
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
# Affectation des entrées aux variables
a=IN[0]
b=IN[1]
c=IN[2]
d=IN[3]
f=IN[4]
g=IN[5]
h=IN[6]
l=IN[7]
# Déclaration d'une liste à deux variable
e = [0] * h
for z in range(h):
e[z] = [0] * d
#Code
i = 0
for i in range (0,h):
j = 0
for j in range (0,d):
k = 0
for k in range (0,f):
if l[k] == g[i] and b[k] == a[j]:
e[i][j]=e[i][j]+c[k]
# Affectez la sortie à la variable OUT.
OUT = e
Maybe Its because of the 2 dimensionnal list?
Here is the error message