Skip to content

Commit 41519b3

Browse files
committed
fix: tuple example
1 parent 05603c0 commit 41519b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/cheatsheet/lists-and-tuples.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -362,13 +362,13 @@ You can use the built-in function `sorted` to return a new list:
362362
</base-disclaimer>
363363

364364
```python
365-
>>> furniture = ['table', 'chair', 'rack', 'shelf']
365+
>>> furniture = ('table', 'chair', 'rack', 'shelf')
366366

367367
>>> furniture[0]
368368
# 'table'
369369

370370
>>> furniture[1:3]
371-
# ['chair', 'rack']
371+
# ('chair', 'rack')
372372

373373
>>> len(furniture)
374374
# 4

0 commit comments

Comments
 (0)