From 4a891817ee54fb66cdf793990350f2370c70728d Mon Sep 17 00:00:00 2001 From: Niels Bom Date: Fri, 30 Nov 2018 11:52:37 +0100 Subject: [python3/en] show chaining operators nicer --- python3.html.markdown | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3