Creating groups by elements and names

Hey guys!

I’m trying to creat groups by elements and names, but my code is returning the error " iteration over non-sequence of type Wall". Could you help me with this?

These is my inputs:

And this is my code:


Do you really want 12 groups with one element in each group? Seems silly…

Wrap each of the 12 items in a list and the code should work out.

1 Like