+ 2
Permutation and combination using python
How can we count the no. Of permutations possible ?
3 Respuestas
+ 8
from itertools import permutations
print(len(list(permutations('abcde'))))
+ 4
The length of permutation of a number is equal to the factorial of the number of elements. For example "abc" has 3 elements, the factorial number of 3 is 6 (3*2*1) so it has 6 possible permutations: ("abc","acb","bac","bca","cba","cab")
0
The fectorial number 3 is 6
(3*2*1)so it has 6 possible permutations:
("NDC","NCD","DCN","DNC",
"CND","CDN")