File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ We'll find a bunch of ways to use None later.
151151None's behavior on the interactive prompt might be a bit confusing at
152152first:
153153
154- ```
154+ ``` py
155155>> > thingy = None
156156>> > thingy
157157>> >
@@ -170,6 +170,8 @@ So far we've used `==`, but there are other operators also. At this
170170point, this list probably looks awfully long, but it's actually pretty
171171easy to learn.
172172
173+ | Usage | Description | True example |
174+ | -----------| -----------------------------------| -----------------------|
173175| ` a == b ` | a is equal to b | ` 1 == 1 ` |
174176| ` a != b ` | a is not equal to b | ` 1 == 2 ` |
175177| ` a > b ` | a is greater than b | ` 2 > 1 ` |
@@ -181,6 +183,8 @@ We can also combine multiple comparisons. These are not always correct,
181183because a and b don't need to be Booleans. We'll learn more about that
182184later.
183185
186+ | Usage | Description | True example |
187+ | -----------| -------------------------------------------| -----------------------------------|
184188| ` a and b ` | a is True and b is True | ` 1 == 1 and 2 == 2 ` |
185189| ` a or b ` | a is True, b is True or they're both True | ` False or 1 == 1 ` , ` True or True ` |
186190
You can’t perform that action at this time.
0 commit comments