write a program to generate all unique combination of three numbers n1,n2,n3 using for loop in python
Answers
Answered by
0
from itertools import permutations
# Accepting values
numbers = [int(x) for x in input("Enter the numbers - ").split()]
# Getting all permutations of the accepted values and printing them
for i in list(permutations(numbers)):
print(i)
Similar questions