Hi,
I am having issue matching 2 lists in alphabetical order.
don’t know where I am making mistake.
here is what i want in the second image.
Match Nested List Issue.dyn (32.0 KB)
Hi,
I am having issue matching 2 lists in alphabetical order.
don’t know where I am making mistake.
here is what i want in the second image.
Match Nested List Issue.dyn (32.0 KB)
try this:
# 0️⃣ Input list of capital letters
capital_letters = IN[0]
# 1️⃣ Dictionary of combinations
combinations = IN[1]
# 2️⃣ Resultant list
result = []
# 🏓 Iterate over the list of capital letters
for letter in capital_letters:
# Pair the letter with each key in the dictionary
for key in combinations.keys():
result.append([letter, key])
# ✅Output the result
OUT =result
@aan , it would be better to create the directory if the lists are limited.
@ Draxl, @Mike, @Vijay and @rajesh, Thanks a lot all for sharing different solutions.
I found reajesh solution perfect because I don’t have to change the main data.
In other solution I have to tweak the main data to get the desired result but all solutions have something to learn which can be used in some other workflows.
Thanks a lot all once again.
Regards,