Python tutorial lesson 4 booleans

Publicado el: 12 febrero 2019
en el canal de: BoardCode
20
2

This is the 4th lesson of Python tutorial. In tho lesson we'll talk about booleans and some built-in functions in Python.
You can read the lesson here : https://bit.ly/2SJU5SZ

The naming of Boolean is inspired by the British George Bool's name .

Booleans are objects can hold only truth values, truth values are either True or False .

True and False must be capitalized in programming.

Operations on booleans:

There are three operations could be applied on booleans, which are and,or and xor.

And,or and xor are called "logical operators".

And-operator

The operator and returns True as result if the two operands (objects) were true , otherwise, returns False

Examples :
True and True result is True
True and False result is False

Or-operator

returns True as result if one of the two operands (objects) were true.

Examples :
True or False result is True
False or False result is False

Xor-operator

returns True if the two operands (objects) weren't same.

Examples :
True xor False result is True.
True xor True result is False.
*****************************************************************
https://boardcode.blogspot.com/
  / boardcode-387065785376027  
  / board_code  
  / board__code  

#python #python_tutorial #booleans


En esta página del sitio puede ver el video en línea Python tutorial lesson 4 booleans de Duración hora minuto segunda en buena calidad , que subió el usuario BoardCode 12 febrero 2019, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 20 veces y le gustó 2 a los espectadores. Disfruta viendo!