Appends an element to the end of the list.
Syntax
list.append(item)Example
Enter values below to update the example in real time.
fruits→append→print→fruits = ["apple", "banana"]
fruits.append("cherry")
print(fruits) # ['apple', 'banana', 'cherry']