Thanks for your request to restate/clarify my problem. @Chrisir has given code that solves the problem I posed, and explained it very well, however, I have not been able to fully understand what the code is doing - my fault - I’m just not that familiar with using classes and arrays and constructors to really understand how I can modify it.
This is what I would like to do:
generatePermutations.py [gist]
I haven’t really been able get to grips with @Chrisir’s code, although I know it shows me a better way to represent my data using classes, and it solves most of my problems.
What I’d like to ask @Chrisir is if you could show me how to join your two pieces of code, and how I can ‘add’ my data into the code to fill the listOfPermuts…
If we could just go one step at at time?




