8000 Section5 update · georgecms/complete-python-course@6eba858 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6eba858

Browse files
committed
Section5 update
1 parent d6d1562 commit 6eba858

File tree

2 files changed

+35
-3
lines changed

2 files changed

+35
-3
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
## AND
2+
- Returns True if both operands are true
3+
4+
Example:
5+
6+
| Statement | Result |
7+
| ------------- | ---------- |
8+
| `True and True` | `True` |
9+
| `True and False` | `False` |
10+
| `False and False` | `False` |
11+
| `False and True` | `False` |
12+
13+
14+
## OR
15+
- Returns True if at least one operand is True
16+
- Reads from the left to the right operand
17+
18+
Example:
19+
20+
| Statement | Result |
21+
| ------------- | ---------- |
22+
| `True or True` | `True` |
23+
| `True or False` | `True` |
24+
| `False or False` | `False` |
25+
| `False or True` | `True` |
26+
27+
## NOT
28+
- Returns True if the operand is False
29+
30+
Example:
31+
32+
| Statement | Result |
33+
| ------------- | ---------- |
34+
| `not True` | `False` |
35+
| `not False` | `True` |

course_contents/1_intro/notes/logical_operators.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0