Appending String to List

  • Share this:

Code introduction


Appends a string to a list and returns the updated list.


Technology Stack : List (list)

Code Type : Function

Code Difficulty :


                
                    
def append_string_to_list(string, list):
    list.append(string)
    return list                
              
Tags: