summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--python3.html.markdown5
1 files changed, 4 insertions, 1 deletions
diff --git a/python3.html.markdown b/python3.html.markdown
index c7fbf342..ff527716 100644
--- a/python3.html.markdown
+++ b/python3.html.markdown
@@ -96,7 +96,10 @@ False or True # => True
2 <= 2 # => True
2 >= 2 # => True
-# Comparisons can be chained!
+# Seeing whether a value is in a range
+1 < 2 and 2 < 3 # => True
+2 < 3 and 3 < 2 # => False
+# Chaining makes this look nicer
1 < 2 < 3 # => True
2 < 3 < 2 # => False