Skip to content

Commit ccafa4e

Browse files
committed
more formatting
1 parent 17c3495 commit ccafa4e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

variables.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ We'll find a bunch of ways to use None later.
151151
None's behavior on the interactive prompt might be a bit confusing at
152152
first:
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
170170
point, this list probably looks awfully long, but it's actually pretty
171171
easy 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,
181183
because a and b don't need to be Booleans. We'll learn more about that
182184
later.
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

0 commit comments

Comments
 (0)