Browse Source

Combinatorics

pull/52/head
Jure Šorn 4 years ago
parent
commit
14eff553c0
2 changed files with 2 additions and 2 deletions
  1. 2
      README.md
  2. 2
      index.html

2
README.md

@ -541,7 +541,7 @@ shuffle(<list>)
Combinatorics Combinatorics
------------- -------------
* **Every function returns an iterator.** * **Every function returns an iterator.**
* **If you want to print the iterator, you need to pass it to the list() function!**
* **If you want to print the iterator, you need to pass it to the list() function first!**
```python ```python
from itertools import product, combinations, combinations_with_replacement, permutations from itertools import product, combinations, combinations_with_replacement, permutations

2
index.html

@ -613,7 +613,7 @@ shuffle(&lt;list&gt;)
<div><h2 id="combinatorics"><a href="#combinatorics" name="combinatorics">#</a>Combinatorics</h2><ul> <div><h2 id="combinatorics"><a href="#combinatorics" name="combinatorics">#</a>Combinatorics</h2><ul>
<li><strong>Every function returns an iterator.</strong></li> <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 </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> </code></pre></div>

Loading…
Cancel
Save