Python extend list method - add the iterable items to the end of current list

The extend() method adds all the elements of an iterable (list, tuple, string etc.) to the end of the list.

Example:

my_list = ["comp sci", "physics", "elec engr", "philosophy"]
my_new_list = ["art", "econ"]
my_list.extend(my_new_list)
print(my_list)
Output:
['comp sci', 'physics', 'elec engr', 'philosophy', 'art', 'econ']