DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to do permutations with repetition in python
from itertools import product for roll in product([1, 2, 3, 4, 5, 6], repeat = 2): print(roll)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#permutations
#repetition
#python
ADD COMMENT
Topic
COMMENT
Name
1+9 =
Submit