product_of_elems = functools.reduce(lambda out, el: out * el, <collection>)
list_of_chars = list(<str>)
```
* **For details about sorted(), min() and max() see [sortable](#sortable).**
* **For details about sort(), sorted(), max() and min() see [sortable](#sortable).**
* **Module [operator](#operator) provides functions itemgetter() and mul() that offer the same functionality as [lambda](#lambda) expressions above.**
```python
@ -388,7 +390,6 @@ import re
'\w' == '[a-zA-Z0-9_]' # Also [ª²³…]. Matches an alphanumeric or _.
'\s' == '[ \t\n\r\f\v]' # Also [\x1c-\x1f…]. Matches a whitespace.
```
* **By default, decimal characters, alphanumerics and whitespaces from all alphabets are matched unless `'flags=re.ASCII'` argument is used.**
* **It restricts special sequence matches to `'[\x00-\x7f]'` (the first 128 characters) and also prevents `'\s'` from accepting `'[\x1c-\x1f]'` (file, table, row, and field separators).**
* **Use a capital letter for negation (all non-ASCII characters will be matched when used in combination with ASCII flag).**
* **Aware `<a>`time and datetime objects have defined timezone, while naive`<n>` don't. If object is naive, it is presumed to be in the system's timezone!**
* **Aware times and datetimes have defined timezone, while naive don't. If object is naive, it is presumed to be in the system's timezone!**
* **`'fold=1'` means the second pass in case of time jumping back for one hour.**
* **Timedelta normalizes arguments to ±days, seconds (<86400)andmicroseconds(<1M).Itsstr()methodreturns`'[±D, ]H:MM:SS[.…]'`andtotal_seconds()afloatofallseconds.**
* **Use `'<D/DT>.weekday()'` to get the day of the week as an int, with Monday being 0.**
* **Most operators call the object's special method that is named after them (second object is passed as an argument), while logical operators call their own code that relies on bool().**
product_of_elems = functools.reduce(<spanclass="hljs-keyword">lambda</span> out, el: out * el, <collection>)
list_of_chars = list(<str>)
</code></pre>
<ul>
<li><strong>For details about sorted(), min() and max() see <ahref="#sortable">sortable</a>.</strong></li>
<li><strong>For details about sort(), sorted(), max() and min() 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>
</ul>
<pre><codeclass="python language-python hljs"><int> = len(<list>) <spanclass="hljs-comment"># Returns number of items. Also works on other collections.</span>
<li><strong>Aware <codeclass="apache hljs"><spanclass="hljs-section"><a></span></code> time and datetime objects have defined timezone, while naive<codeclass="apache hljs"><spanclass="hljs-section"><n></span></code> don't. If object is naive, it is presumed to be in the system's timezone!</strong></li>
<li><strong>Aware times and datetimes have defined timezone, while naive don't. If object is naive, it is presumed to be in the system's timezone!</strong></li>
<li><strong><codeclass="python hljs"><spanclass="hljs-string">'fold=1'</span></code> means the second pass in case of time jumping back for one hour.</strong></li>
<li><strong>Timedelta normalizes arguments to ±days, seconds (< 86 400) and microseconds (< 1M). Its str() method returns <codeclass="python hljs"><spanclass="hljs-string">'[±D, ]H:MM:SS[.…]'</span></code> and total_seconds() a float of all seconds.</strong></li>
<li><strong>Use <codeclass="python hljs"><spanclass="hljs-string">'<D/DT>.weekday()'</span></code> to get the day of the week as an int, with Monday being 0.</strong></li>
'<strong>For details about sorted(), min() and max() see <a href="#sortable">sortable</a>.</strong>':'<strong>For details about sorted(), min() and max() see sortable (p. 16).</strong>',
'<strong>For details about sort(), sorted(), max() and min() see <a href="#sortable">sortable</a>.</strong>':'<strong>For details about sort(), sorted(), max() and min() 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>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>',