Append is used to add it’s argument as single element at the end of the list and the length of the list increases by one and it’s time complexity is constant i.e ,0(1) whereas extend increases the length of the list by number of it’s argument, It iterates over it’s argument and adding each element to the list and extending the list.
I am attaching some Syntax of both:
syntax:
# Adds an object (a number, a string or a
# another list) at the end of my_list
my_list.append(object)
Input:
my_list = [AG, 'PD']
my_list.append('AG')
print my_list
Output:
['AG', 'PD', 'AG']
Input
my_list = ['AG', 'for', 1, 2, 3, 4]
my_list.extend('AG')
print my_list
Output:
['AG', 'for', 1, 2, 3, 4, 'A', 'G']
Hope This Helps.