0
Append
What is append used for in python or JavaScript or in any other languages
1 Answer
+ 13
list.append(elem) -- adds a single element to the end of the list.
...list.insert(index, elem) -- inserts the element at the given index, shifting elements to the right.
list.extend(list2) adds the elements in list2 to the end of the list.