Python Program to Accept Three Digits and Print all Possible Combinations from the Digits.
A=list(map(str,input("Enter the Combinations: ").split())) alnum=A[0]+A[1]+A[2] for i in range(3): for j in range(3): for k in range(3): if(i!=j and j!=k and k!=i): print(alnum[i],alnum[j],alnum[k])
INPUT_1:
1 5 2
OUTPUT:
1 5 2
1 2 5
5 1 2
5 2 1
2 1 5
2 5 1
INPUT_2:
1 5 9
OUTPUT:
1 5 9
1 9 5
5 1 9
5 9 1
9 1 5
9 5 1
More Codes to Fcuk
- Armstrong Number
- Find the biggest even number
- Program to replace every element on right side
- Compute the frequency of the note
- Print all Possible Combinations from three Digits.
- Get number n and Compute n+nn+nnn
- Print Cube root of the given number
- Convert number into binary, octal and hexa
- Return maximum number of operations performed on array.
- Determine the encryption key
- Find the count of numbers having a prime number in their binary representation.
- Fibonacci Series up to given n numbers
- Help Alice find the route to her home
Explore
- Quantum Mechanics relation with quantum computing
- Unzipping Files using Python
- An Algorithm which accepts n integer values and calculates the average and prints it.
- How can Quantum Computing merge with Virtual Reality ? !
- Blockchain and Cryptocurrency. And their relations with Virtual Reality !!