The append() method adds an item at the end of the list.
In this blog post, you will learn how to use python list append()
method.
Step 1: Create a list
my_list = [1, 2, 3, 4, 5]
Step 2: Append to the list
my_list.append(34)
Step 3: Print the list
print(my_list)
Output:
[1, 2, 3, 4, 5, 34]