You can download this code by clicking the button below.
This code is now available for download.
Appending an element to the end of a list and returning the updated list.
Technology Stack : List
Code Type : Function
Code Difficulty :
def append_to_list(my_list, element):
my_list.append(element)
return my_list