[Tutor] Preference to Bitwise operators in comparison to Logical operators

David bouncingcats at gmail.com
Fri Sep 11 00:00:14 EDT 2020


On Fri, 11 Sep 2020 at 07:55, Manprit Singh <manpritsinghece at gmail.com> wrote:

> As we all know True is 1 and False is 0 .

Not in Python ...

$ python3
Python 3.7.3 (default, Jul 25 2020, 13:03:44)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> True is 1
False
>>> False is 0
False
>>>


More information about the Tutor mailing list