<li><strong>For details about sort(), sorted(), min() and max() see <ahref="#sortable">sortable</a>.</strong></li>
<li><strong>Module <ahref="#operator">operator</a> provides functions itemgetter() and mul() that offer the same functionality as <ahref="#lambda">lambda</a> expressions above.</strong></li>
<li><strong>Module <ahref="#operator">operator</a> has function itemgetter() that can replace listed <ahref="#lambda">lambdas</a>.</strong></li>
<li><strong>This text uses the term 'collection' instead of 'iterable'. For rationale see <ahref="#collection">collection</a>.</strong></li>
</ul>
<pre><codeclass="python language-python hljs"><int> = len(<list>) <spanclass="hljs-comment"># Returns number of items. Also works on other collections.</span>
<pre><codeclass="python language-python hljs"><int> = len(<list>) <spanclass="hljs-comment"># Returns number of items. Also works on dict, set and string.</span>
<int> = <list>.count(<el>) <spanclass="hljs-comment"># Returns number of occurrences. Also `if <el> in <coll>: ...`.</span>
<int> = <list>.index(<el>) <spanclass="hljs-comment"># Returns index of the first occurrence or raises ValueError.</span>
<el> = <list>.pop() <spanclass="hljs-comment"># Removes and returns item from the end or at index if passed.</span>
@ -2923,7 +2924,7 @@ $ deactivate <span class="hljs-comment"># Deactivates the active
'<strong>For details about sort(), sorted(), min() and max() see <a href="#sortable">sortable</a>.</strong>':'<strong>For details about sort(), sorted(), min() and max() see sortable (p. 16).</strong>',
'<strong>Module <a href="#operator">operator</a> provides functions itemgetter() and mul() that offer the same functionality as <a href="#lambda">lambda</a> expressions above.</strong>':'<strong>Module \'operator\' (p. 31) provides functions itemgetter() and mul() that offer the same functionality as lambda expressions (p. 11) above.</strong>',
'<strong>Module <a href="#operator">operator</a> has function itemgetter() that can replace listed <a href="#lambda">lambdas</a>.</strong>':'<strong>Module \'operator\' has function itemgetter() that can replace listed lambdas (p. 11, 31).</strong>',
'<strong>This text uses the term \'collection\' instead of \'iterable\'. For rationale see <a href="#collection">collection</a>.</strong>':'<strong>This text uses the term \'collection\' instead of \'iterable\'. For rationale see collection (p. 18).</strong>',
'<strong>Adding <code class="python hljs"><span class="hljs-string">\'!r\'</span></code> to the expression converts object to string by calling its <a href="#class">repr()</a> method.</strong>':'<strong>Adding <code class="python hljs"><span class="hljs-string">\'!r\'</span></code> to the expression converts object to string by calling its repr() method.</strong>',
'<strong>It can be any <a href="#callable">callable</a>, but is usually implemented as a function that returns a <a href="#closure">closure</a>.</strong>':'<strong>It can be any callable, but is usually implemented as a function that returns a closure.</strong>',
'<strong>Hints are used by type checkers like <a href="https://pypi.org/project/mypy/">mypy</a>, data validation libraries such as <a href="https://pypi.org/project/pydantic/">Pydantic</a> and lately also by <a href="https://pypi.org/project/Cython/">Cython</a> compiler. However, they are not enforced by CPython interpreter.</strong>':'<strong>Hints are used by type checkers like mypy, data validation libraries such as Pydantic and lately also by Cython compiler. However, they are not enforced by CPython interpreter.</strong>',