From 18f55fdfdfc611cdd6aa1e383f8db568a1ae748c Mon Sep 17 00:00:00 2001 From: mistymayem <44274210+mistymayem@users.noreply.github.com> Date: Sat, 27 Oct 2018 00:31:38 -0400 Subject: [PATCH] Sorted examples by priority (#20201) --- .../python/boolean-operations/index.md | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/guide/english/python/boolean-operations/index.md b/guide/english/python/boolean-operations/index.md index 294a99d9b9..cb7c0fb22d 100644 --- a/guide/english/python/boolean-operations/index.md +++ b/guide/english/python/boolean-operations/index.md @@ -1,7 +1,7 @@ --- title: Python Boolean Operations --- -`and`, `or`, `not` +`or`, `and`, `not` Python Docs - Boolean Operations @@ -21,12 +21,14 @@ not x | if x is false, then True, else False | (3) ## Examples: -### `not`: +### `or`: - >>> not True - False - >>> not False + >>> True or False # Short-circuited at first argument. True + >>> False or True # Second argument is evaluated. + True + >>> False or False # Second argument is evaluated. + False ### `and`: @@ -36,12 +38,10 @@ not x | if x is false, then True, else False | (3) False >>> True and True # Second argument is evaluated. True + +### `not`: -### `or`: - - >>> True or False # Short-circuited at first argument. + >>> not True + False + >>> not False True - >>> False or True # Second argument is evaluated. - True - >>> False or False # Second argument is evaluated. - False \ No newline at end of file