Boolean Operators - What are True and False in Python?

Do computers really know what is 1 and what is 0 ?

#WrittenByHuman

Boolean Operators - Himanshu Ramchandani

Boolean operators are either True or False.

The computer hardware (motherboard) is green or blue and has golden lines, these golden lines carry electricity.

And you know electricity is nothing but the flow of charge.

Computers don’t know what is 1 and 0.

They only know if there is a charge flowing or not.

These operators are equivalent to

  • 1 and 0,

  • high voltage and low voltage

  • charge is flowing and the charge is not flowing.

True
False

Note that these Python keywords start with capital T and F.

Reply

or to participate.