Python for C++ Programmers
Chapter 2: Basic data types
Booleans
Booleans (bool) can be either True or False.
Note that the literals are Capitalised and not lowercase as in C++.
Try these out!
>>> type(True)
>>> type(False)
Department of Computing, Imperial College London
Booleans (bool) can be either True or False.
Note that the literals are Capitalised and not lowercase as in C++.
Try these out!
>>> type(True)
>>> type(False)