Suppose I have an integer (say 235
) and I want to reorder this number in all possible ways and get all other integers in a list or tuple. Is there a way to do it in python?
The desired output will consist of: [235, 253, 325, 352, 523, 532]
And any other if I missed some.
I wanna create a list tuple or any other thing of all these values from where I can use these values somewhere else.