Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

conmbination in python

# A Python program to print all
# permutations using library function
from itertools import permutations
 
# Get all permutations of [1, 2, 3]
perm = permutations([1, 2, 3])
 
# Print the obtained permutations
for i in list(perm):
    print (i)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #conmbination #python
ADD COMMENT
Topic
Name
6+2 =