Set puzzle: Difference between revisions
Content added Content deleted
(→{{header|Python}}: Different output - no real reason.) |
(→{{header|Python}}: incorrect template) |
||
Line 199: | Line 199: | ||
=={{header|Python}}== |
=={{header|Python}}== |
||
{{incorrect|Python| the code must generate 4 sets for 9 cards dealt, or 6 sets for 12 cards dealt}} |
|||
<lang python>from itertools import product, combinations |
<lang python>from itertools import product, combinations |
||
from random import sample |
from random import sample |