I am currently following How to get all possible combinations of a list’s elements?. The recommended solution implements the ordered solution i.e. if you have A, B then combinations are A, B, AB.
Nevertheless, I would like to include any possible ordering of elements i.e. A, B, BA, AB. Is there any way to do that in Python?
Thank you.