|
|
@ -613,7 +613,7 @@ shuffle(<list>) |
|
|
|
|
|
|
|
<div><h2 id="combinatorics"><a href="#combinatorics" name="combinatorics">#</a>Combinatorics</h2><ul> |
|
|
|
<li><strong>Every function returns an iterator.</strong></li> |
|
|
|
<li><strong>If you want to print the iterator, you need to pass it to the list() function!</strong></li> |
|
|
|
<li><strong>If you want to print the iterator, you need to pass it to the list() function first!</strong></li> |
|
|
|
</ul><pre><code class="python language-python hljs"><span class="hljs-keyword">from</span> itertools <span class="hljs-keyword">import</span> product, combinations, combinations_with_replacement, permutations |
|
|
|
</code></pre></div> |
|
|
|
|
|
|
|