-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex28.txt
More file actions
40 lines (40 loc) · 767 Bytes
/
ex28.txt
File metadata and controls
40 lines (40 loc) · 767 Bytes
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
1. True and True
true
2. False and True
false
3. 1 == 1 and 2 == 1
false
4. "test" == "test"
true
5. 1 == 1 or 2 != 1
true
6. True and 1 == 1
true
7. False and 0 != 0
true
8. True or 1 == 1
true
9. "test" == "testing"
false
10. 1 != 0 and 2 == 1
false
11. "test" != "testing"
true
12. "test" == 1
false
13. not (True and False)
true
14. not (1 == 1 and 0 != 1)
false
15. not (10 == 1 or 1000 == 1000)
false
16. not (1 != 10 or 3 == 4)
false
17. not ("testing" == "testing" and "Zed" == "Cool Guy")
true
18. 1 == 1 and (not ("testing" == 1 or 1 == 0))
true
19. "chunky" == "bacon" and (not (3 == 4 or 3 == 3))
false
20. 3 == 3 and (not ("testing" == "testing" or "Python" == "Fun"))
false