I have an expression like below: TXTXFX
I need to create different combinations by replacing X by "T" and "F". The expression might change based on the input.
I am using python to do it using lengthy for loops. (not yet achieved it)
Could you please suggest a convenient way to do it in python.
Thanks