diff --git a/native-datatypes.html b/native-datatypes.html index df615ad..c317f4b 100755 --- a/native-datatypes.html +++ b/native-datatypes.html @@ -224,7 +224,7 @@ ZeroDivisionError: Fraction(0, 0)
>>> a_list = ['a', 'b', 'mpilgrim', 'z', 'example'] ① >>> a_list -['a', 'b', 'mpilgrim', 'z', 'example'] +['a', 'b', 'mpilgrim', 'z', 'example'] >>> a_list[0] ② 'a' >>> a_list[4] ③ @@ -361,7 +361,7 @@ ValueError: list.index(x): x not in list>>> a_list[1] ② 'new'
del statement to delete a specific item from a list.
1 after deleting index 1 does not result in an error. All items after the deleted item shift their positional index to “fill the gap” created by deleting the item.