Skip to content

Commit 8421a4b

Browse files
committed
add a nice diagram
1 parent 614a181 commit 8421a4b

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎defining-functions.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ NameError: name 'd' is not defined
148148
>>>
149149
```
150150

151+
Let's draw a diagram of these variables:
152+
153+
![Locals and globals.](images/locals-and-globals.png)
154+
151155
However, modifying a global variable in-place from a function is easy.
152156

153157
```py

‎images/drawings.odg‎

6.13 KB
Binary file not shown.

‎images/locals-and-globals.png‎

13.9 KB
Loading

0 commit comments

Comments
 (0)