These commands:
l = [\"1\\n2\"] print(l)
print
[\'1\\n2\']
I want to print
[\'1 2\']
You should probably use this, if you have more than one element
>>> test = ['1\n2', '3', '4\n5'] >>> print '[{0}]'.format(','.join(test)) [1 2,3,4 5]