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