I have an array defined like this in Python.
keys = "setid","cntrct_id","version_nbr"
and the elements are pushed into array as expected.
print(keys)
('setid', 'cntrct_id', 'version_nbr')
But when am trying to insert quotes and split the elements with ',' seperated
am getting output like this
'"setid","cntrct_id","version_nbr"'
am expecting output like this:
"setid","cntrct_id","version_nbr"
I tried many ways,
(','.join('"' + x + '"' for x in keys))
','.join(map(lambda x: "\"" + x + "\"", keys))
','.join(['"%s"' % w for w in keys])
but everything is appending single quotes,
How should I avoid generating single quotes from output?