File tree 1 file changed +5
-1
lines changed 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.
151
151
None's behavior on the interactive prompt might be a bit confusing at
152
152
first:
153
153
154
- ```
154
+ ``` py
155
155
>> > thingy = None
156
156
>> > thingy
157
157
>> >
@@ -170,6 +170,8 @@ So far we've used `==`, but there are other operators also. At this
170
170
point, this list probably looks awfully long, but it's actually pretty
171
171
easy to learn.
172
172
173
+ | Usage | Description | True example |
174
+ | -----------| -----------------------------------| -----------------------|
173
175
| ` a == b ` | a is equal to b | ` 1 == 1 ` |
174
176
| ` a != b ` | a is not equal to b | ` 1 == 2 ` |
175
177
| ` a > b ` | a is greater than b | ` 2 > 1 ` |
@@ -181,6 +183,8 @@ We can also combine multiple comparisons. These are not always correct,
181
183
because a and b don't need to be Booleans. We'll learn more about that
182
184
later.
183
185
186
+ | Usage | Description | True example |
187
+ | -----------| -------------------------------------------| -----------------------------------|
184
188
| ` a and b ` | a is True and b is True | ` 1 == 1 and 2 == 2 ` |
185
189
| ` a or b ` | a is True, b is True or they're both True | ` False or 1 == 1 ` , ` True or True ` |
186
190
You can’t perform that action at this time.
0 commit comments