Skip to content

Commit 0f76f2d

Browse files
committed
List
1 parent 2c8b218 commit 0f76f2d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ flatter_list = list(itertools.chain.from_iterable(<list>))
5353
product_of_elems = functools.reduce(lambda out, x: out * x, <collection>)
5454
list_of_chars = list(<str>)
5555
```
56-
* **Check out module [operator](#operator) for alternative versions of examples.**
56+
* **Module [operator](#operator) provides functions itemgetter() and mul() that offer the same functionality as lambda expressions above.**
5757

5858
```python
5959
<int> = <list>.count(<el>) # Returns number of occurrences. Also works on strings.

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@
250250
list_of_chars = list(&lt;str&gt;)
251251
</code></pre>
252252
<ul>
253-
<li><strong>Check out module <a href="#operator">operator</a> for alternative versions of examples.</strong></li>
253+
<li><strong>Module <a href="#operator">operator</a> provides functions itemgetter() and mul() that offer the same functionality as lambda expressions above.</strong></li>
254254
</ul>
255255
<pre><code class="python language-python hljs">&lt;int&gt; = &lt;list&gt;.count(&lt;el&gt;) <span class="hljs-comment"># Returns number of occurrences. Also works on strings.</span>
256256
index = &lt;list&gt;.index(&lt;el&gt;) <span class="hljs-comment"># Returns index of first occurrence or raises ValueError.</span>

0 commit comments

Comments
 (0)