From 523c5791172ae547c565a1056fa2cb71f75ebe5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Thu, 14 Nov 2024 15:31:02 +0100 Subject: [PATCH] List --- README.md | 2 +- index.html | 2 +- pdf/remove_links.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 16b5295..e252bd4 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ sorted_by_second = sorted(, key=lambda el: el[1]) sorted_by_both = sorted(, key=lambda el: (el[1], el[0])) flatter_list = list(itertools.chain.from_iterable()) ``` -* **For details about sort(), sorted(), max() and min() see [sortable](#sortable).** +* **For details about sort(), sorted(), min() and max() see [sortable](#sortable).** * **Module [operator](#operator) provides functions itemgetter() and mul() that offer the same functionality as [lambda](#lambda) expressions above.** ```python diff --git a/index.html b/index.html index 74c262c..916bc4d 100644 --- a/index.html +++ b/index.html @@ -123,7 +123,7 @@ sorted_by_both = sorted(<collection>, key=lam flatter_list = list(itertools.chain.from_iterable(<list>))
    -
  • For details about sort(), sorted(), max() and min() see sortable.
  • +
  • For details about sort(), sorted(), min() and max() see sortable.
  • Module operator provides functions itemgetter() and mul() that offer the same functionality as lambda expressions above.
<int> = len(<list>)             # Returns number of items. Also works on other collections.
diff --git a/pdf/remove_links.py b/pdf/remove_links.py
index 747ffb3..984c53a 100755
--- a/pdf/remove_links.py
+++ b/pdf/remove_links.py
@@ -7,7 +7,7 @@ from pathlib import Path
 
 
 MATCHES = {
-    'For details about sort(), sorted(), max() and min() see sortable.': 'For details about sort(), sorted(), max() and min() see sortable (p. 16).',
+    'For details about sort(), sorted(), min() and max() see sortable.': 'For details about sort(), sorted(), min() and max() see sortable (p. 16).',
     'Module operator provides functions itemgetter() and mul() that offer the same functionality as lambda expressions above.': 'Module \'operator\' (p. 31) provides functions itemgetter() and mul() that offer the same functionality as lambda expressions (p. 11) above.',
     'Adding \'!r\' to the expression converts object to string by calling its repr() method.': 'Adding \'!r\' to the expression converts object to string by calling its repr() method.',
     'It can be any callable, but is usually implemented as a function that returns a closure.': 'It can be any callable, but is usually implemented as a function that returns a closure.',