Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[python3/en] Add examples to Bool operators with ints (#2639)
- Loading branch information
1 parent
20b2a9a
commit 05e4c41
Showing
1 changed file
with
3 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
05e4c41
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am a python newbie, but very experienced programmer.
On the page you have the expression...
-5 != False != True #=> True
This made absolutely no sense to me as a newbie, as I read that expression as being equivalent to
(-5 != False) != True
Which is of course False, Not True.
Until I saw further down the page...
# Comparisons can be chained!
I would suggest you move that expression to the 'chained' section, and then add the explanation...
Remember this doc is for newbies (like me), and you should not example something before it is introduced.
Thank you
Anthony