Pages

Tuesday, March 24, 2015

Boolean Operations in Python 3

This article talks about Boolean Operations In Python 3 using the incoming logic by using the principles of cause and effect. The result will be True and false.


Comparison praphot

True and true is true.
False or false false.
If true, and false.
if true else True. If false else false, true.

Logical operations on Python 3

Operation Means Results
x or y x or y If x = True , y = True Therefore, x or y is true
x and y x and y If x = False , y = True Therefore, x and y are false.
not x == y if x แล้ว y ถ้า x = True , y = False Therefore, if x and y are true.

Thank you.

No comments:

Post a Comment