Hello community,
I’m just starting to learn Python and I know I can do this with Dynamo, but I want to put it into practice by improving my scripts with python.
The issue is the following, I generated a code in python to compare two lists and that gives me the index of the items that are used in list one according to the order of list 2, the code works fine in the Python IDLE but when placing it in the Dynamo node it gives me a single value.
l1 = IN[0]
l2 = IN[1]
for indice, (item1) in enumerate(l1):
for indice, (item2) in enumerate(l2):
if item1 == item2:
print(indice)
OUT=indice