Data Types

Lawrence D’Oliveiro lawrencedo99 at gmail.com
Thu Sep 22 04:40:13 EDT 2016


On Thursday, September 22, 2016 at 3:47:27 PM UTC+12, Sayth Renshaw wrote:
> What about 0 or 1 they are true and false like no other numbers?

    >>> isinstance(1, bool)
    False
    >>> isinstance(True, int)
    True



More information about the Python-list mailing list