How to compare two list where result will matching index of other list


Please check the result list after matching the index of the two lists. The final list I have marked in black color.

Hello @bim.bot and welcome—not sure something could help…anyway it looks you work in grashopper!!!

1 Like

Since you posted this with the python tag, an easy python solution would be:

zipped_lists = zip(list1, list2)
results = [value1 == value2 for value1, value2 in zipped_lists]
1 Like

@stewart.skyler (Profile - stewart.skyler - Dynamo) thank you for the response! Cloud I also use a similar approach for this one? - Want coordinates of Revit in the order of the sofistik coordinates list

@sovitek thank you so much for the answer! Could I also use a similar approach for this question? -Want coordinates of Revit in the order of the sofistik coordinates list