Skip to content

Commit 60fd6f9

Browse files
committed
Add missing example
1 parent 9c97ba1 commit 60fd6f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ my_tuple.index("hello")
213213
my_tuple.index(3.14)
214214
my_tuple.index(False)
215215
my_tuple.index("blah") # ValueError.
216+
217+
218+
# Trying to change the value of an item in a tuple causes an error.
219+
my_tuple[2] = "newvalue" # TypeError.
216220
```
217221

218222
Lists.

0 commit comments

Comments
 (0)