Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

what does the combinations itertools in python do

combinations(iterable, r) : It return r-length tuples in sorted order with no repeated elements. For Example, combinations('ABCD', 2) ==> [AB, AC, AD, BC, BD, CD].
 
PREVIOUS NEXT
Tagged: #combinations #itertools #python
ADD COMMENT
Topic
Name
4+6 =