I have a list of industries formated as Agriculture,Aquaculture,Forestry and Logging,Fishing Hunting and Trapping
and I need it to look like "Agriculture","Aquaculture","Forestry and Logging","Fishing Hunting and Trapping"
Thanks in advance
I have a list of industries formated as Agriculture,Aquaculture,Forestry and Logging,Fishing Hunting and Trapping
and I need it to look like "Agriculture","Aquaculture","Forestry and Logging","Fishing Hunting and Trapping"
Thanks in advance
Try this way.
text = "Agriculture,Aquaculture,Forestry and Logging,Fishing Hunting and Trapping"
newtext = text.replace(',', '","')
newtext = '"' + newtext + '"'
print(newtext)
output
"Agriculture","Aquaculture","Forestry and Logging","Fishing Hunting and Trapping"