Skip to content

Commit b6f2fe9

Browse files
fix formatting of fake-run cell in intro
1 parent 32a70e3 commit b6f2fe9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

source/intro.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -397,12 +397,13 @@ Other symbols won't work since they have their own meanings in Python. For examp
397397
`-` is the subtraction symbol; if we try to assign a name with
398398
the `-` symbol, Python will complain and we will get an error!
399399

400-
```
400+
```{code-cell} ipython3
401+
:tags: ["remove-output"]
401402
my-number = 1
402403
```
403-
404-
```
405-
SyntaxError: cannot assign to expression here. Maybe you meant '==' instead of '='?
404+
```{code-cell} ipython3
405+
:tags: ["remove-input"]
406+
print("SyntaxError: cannot assign to expression here. Maybe you meant '==' instead of '='?")
406407
```
407408

408409
```{index} object; naming convention

0 commit comments

Comments
 (0)