diff --git a/native-datatypes.html b/native-datatypes.html index 62c5338..4ad5139 100755 --- a/native-datatypes.html +++ b/native-datatypes.html @@ -292,7 +292,7 @@ ZeroDivisionError: Fraction(0, 0)
-☞
a_list.insert(0, value)is like theshift()function in Perl. It adds an item to the beginning of the list, and all the other items have their positional index bumped up to make room. +☞
a_list.insert(0, value)is like theunshift()function in Perl. It adds an item to the beginning of the list, and all the other items have their positional index bumped up to make room.
Let’s look closer at the difference between append() and extend().