November 2017
Beginner to intermediate
204 pages
5h 23m
English
The Boolean data type has two, and only two, possible values, namely, True and False. In Python, you can produce a Boolean value by writing either True or False, starting with a capital T or F respectively:
>> True>> False
Boolean values can be combined using bitwise operators:
The following are some examples using bitwise operators:
>> True and True>> True and False>> True or False>> False or False
Logical operators can be used to produce Boolean values from other data types by comparing values:
Read now
Unlock full access