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
On this page of the site you can watch the video online Python tutorial lesson 4 booleans with a duration of hours minute second in good quality, which was uploaded by the user BoardCode 12 February 2019, share the link with friends and acquaintances, this video has already been watched 20 times on youtube and it was liked by 2 viewers. Enjoy your viewing!