Return a variable in a Python list with double quotes instead of single May 15, 2023 by Tarik You could use json.dumps() >>> import json >>> List = ["A", "B"] >>> print json.dumps(List) ["A", "B"]