Python append vs extend vs insert: Differences, + vs +=, Strings, Nested Lists and Speed Compared (Tested Examples)
append() adds one item to the end of a Python list, extend() adds every item from an iterable, and insert() adds one item at a position. Here is a tested comparison in Python 3.13: strings, negative indexes, + vs +=, the None return value, nested lists and speed.