The 'append( )' Function is used to add a new element at the end of the List.
Let us say, we have a List that contains three names, 'Mohan', 'Kriti' and 'Salim'. And we want to insert a new name 'Mika' at the end of the List.
x = ["Mohan", "Kriti", "Salim"] x.append("Mika") print(x)
So, in the above code we have created a 'List'and initialised to the variable 'x'.
Below is how the values are positioned in the List,
Next, we have used the 'append( )' function to add the new name 'Mika' at the end of the List.
And we get the below output,