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