Skip to content

Commit e5e9123

Browse files
authored
Update 60-dictionaries.md
Remove errant code sample
1 parent 13406e0 commit e5e9123

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

website/content/02-introduction-to-python/080-advanced-datatypes/60-dictionaries.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ draft: false
55
weight: 60
66
---
77

8-
```bash
9-
$ ls
10-
$ cd foo
11-
```
12-
138
Dictionaries are a useful type that allow us to store our data in key, value pairs. Dictionaries themselves are **mutable**, *but*, dictionary keys can only be **immutable** types.
149

1510
We use dictionaries when we want to be able to quickly access additional data associated with a particular key. A great practical application for dictionaries is memoization. Let's say you want to save computing power, and store the result for a function called with particular arguments. The arguments could be the key, with the result stored as the value. Next time someone calls your function, you can check your dictionary to see if the answer is pre-computed.

0 commit comments

Comments
 (0)