If I have an equation, (a + (b - c) d - e) f = 75
, how can I iterate through changing my variables a thru f? If a thru f are unique numbers [1,6], then there would be 6! ways of placing the numbers, right? So I imagine I have to increment through my variables somehow.
Assumptions/Limitations:
a-f are unique integers [1,6]
I'm using python and trying to solve without using built-in functions or libraries
Use 6 nested for-loops to enumerate all ways of setting each of a, b, c, d, e, and f to the values 1-6 (part I'm having an issue understanding how to organize)
Apparently there is only one permutation that will solve this particular equation