I get only 84. Adapted Python code from here:
I realized later that my Python struggles with string join ( "+".join(c) ) and converting integers to strings could have been avoided using a ‘Type hint’ of ‘str’ instead of ‘int’. This also makes the code much more flexible since it will work with a list of characters or words as well as integers (or reals?).
This is a simple demo of the modified Combos Python component using characters:
[Combos_2021Jan15a]
Combos_2021Jan15a.gh (10.0 KB)
The slightly simplified Python:
from itertools impo…
Combos_2024Oct31a.gh (13.4 KB)
P.S. Added white group as a visual aid:
Combos_2024Oct31bb.gh (19.4 KB)
UPDATED!
P.P.S. I noticed that the last two grids (top row) in my visual aid had the same pattern Fortunately it’s a simple off-by-one error, easily fixed. Top row now shows four grids, not five. UPDATED version ‘bb’ above.
2 Likes