Appending Element to List Function

  • Share this:

Code introduction


Appending an element to a list and returning the modified list.


Technology Stack : List (list)

Code Type : List operation

Code Difficulty :


                
                    
def append_to_list(input_list, element):
    input_list.append(element)
    return input_list                
              
Tags: