I have a list of products which are strings & want to remove single quotes from it
The list of products retrieved from a sql query in python environment
['000003286694', '000003286704', '000003420412']
I have to pass this list as a payload to json object. So it needs to be preceded by double quotes.
I have used following method
d=[('"'+i+'"') for i in x]
but I get the output as
['"000003286694"', '"000003286704"', '"000003420412"']
I tried using regex, replace method to get away with single quotes but no success. Can anyone please share workaround for this
I want result list should be
["000003286694", "000003286704", "000003420412"]