Daily Archives: November 9, 2012

How do use itertools in Python to build permutation or combination

There is a python module dedicated to permutations and combinations called itertools. import itertoolsimport itertools The permutation function allows you to get permutation of N values within a list, where order matters. For instance, selecting N=2 values with [1,2,3] is … Continue reading

Posted in Python | Tagged | 6 Comments