Append items to list python

Using append() function, we can add new items at the end of the list.

Example

list.append(item)



Appending items to list

Example

#Append items to list in python

words = ["abc", "def", "ghi"]
print("List ", words)

#appending "jkl"
words.append("jkl")
print("New List ", words)