I have a sample array ['first_name', 'last_name'] as input and would like to have the output as "first_name", "last_name" without any square brackets but need to have the double quotes around the elements. I have tried below but doesn't seem to work. appreciate any inputs on this.
The array is dynamic. Can have any number of elements. The elements need to be enclosed in double quotes each and no square brackets.
array_list = ['first_name', 'last_name']
string_list = list(array_list)
print(string_list)
first nameandlast nameis in the list..