Appending Element to List

  • Share this:

Code introduction


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                
              
Tags: