How to print all possibilities of a number that occur interchanging the digits in a number?

Posted by RADHA KRISHNA LOLLA on Stack Overflow See other posts from Stack Overflow or by RADHA KRISHNA LOLLA
Published on 2010-06-14T10:21:29Z Indexed on 2010/06/14 10:32 UTC
Read the original article Hit count: 176

Filed under:

I want to print that the all possibilities of a number that occurs interchanging the digits in a number? I want to print that the all possibilities of a number that occurs interchanging the digits in a number? Suppose a number 1234 it have 24 possibilities 4!=24 123 have 6 possibilities 3!=6 123 132 213 231 312 321 i want these numbers as output please tell me the structure of this program in the python

© Stack Overflow or respective owner

Related posts about python