-
Notifications
You must be signed in to change notification settings - Fork 5
/
ex27.py
45 lines (44 loc) · 785 Bytes
/
ex27.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Truth Values to memorize Logic
# and
# or
# not
# != (not equal)
# == (equal)
# >= (greater-than-equal)
# <= (less-than-equal)
# True
# False
#
# NOT True?
# not False True
# not True False
# OR True?
# True or False True
# True or True True
# False or True True
# False or False False
# AND True?
# True and False False
# True and True True
# False and True False
# False and False False
# NOT OR True?
# not (True or False) False
# not (True or True) False
# not (False or True) False
# not (False or False) True
# NOT AND True?
# not (True and False) True
# not (True and True) False
# not (False and True) True
# not (False and False) True
# != True?
# 1 != 0 True
# 1 != 1 False
# 0 != 1 True
# 0 != 0 False
# == True?
# 1 == 0 False
# 1 == 1 True
# 0 == 1 False
# 0 == 0 True