# define your list my_list = [1, 2, 3] # extend the list by adding 4 & 5 my_list.extend([4, 5]) # print the result print(my_list)