Encoding
= mapping
the Boolean values to
binary codes
(Remember that the computer
can only store
binary numbers !)
How would you map boolean values to these binary numbers:
A commonly used encoding for Boolean values:
Python (and C) uses the previous encoding for Boolean values
Python program that show the encoding: