I am trying to return a variable from a list of strings in double quotes rather than single.
For example, if my list is
List = [\"A\", \"B\"]
You could use json.dumps()
>>> import json >>> List = ["A", "B"] >>> print json.dumps(List) ["A", "B"]