-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex28.py
More file actions
20 lines (18 loc) · 714 Bytes
/
ex28.py
File metadata and controls
20 lines (18 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
print True and True # True
print False and True # False
print 1 == 1 and 2 == 1 # False
print "test" == "test" # True
print 1 == 1 or 2 != 1 # True
print True and 1 == 1 # True
print False and 0 != 0 # False
print True or 1 == 1 # True
print "test" != "testing" # True
print "test" == 1 # False
print not (True and False) # True
print not (1 == 1 and 0 != 1) # False
print not (10 == 1 or 1000 == 1000) # False
print not (1 != 10 or 3 == 4) # False
print not ("testing" == "testing" and "zed" == "Cool Guy") # True
print 1 == 1 and (not ("testing" == 1 or 1 == 0)) # True
print "chunky" == "bacon" and (not (3 == 4 or 3 == 3)) # False
print 3 == 3 and (not ("testing" == "testing" or "python" == "Fun")) # False