i have a list and want it as a string with quotes mylist = [1,2,3]
mylist = [1,2,3]
require O/P as myString = \"\'1\',\'2\',\'3\'\"
myString = \"\'1\',\'2\',\'3\'\"
i tried my
my
OR regular repr:
repr
>>> l=[1,2,3] >>> ','.join(repr(str(i)) for i in l) "'1','2','3'" >>>