How to print out a list of empty strings of size n while the empty strings are represented by double quotes ""
not single quotes ''
(["", "", ""]
) in python2?
I want to initialize a list of ["", "", "", ""]
not a list of ['', '', '', '']
of a given size n, it has nothing to do with JSON format.
And why does python automatically convert all the double quotes into single quotes?
i.e. print ["abc"]
will print out ['abc']
and print [""]
will print out ['']
So far I can only get single quotes printed out ['']
but the output I'm seeking strictly requires double quotes [""]
inside and how to do that?
print [""]
will print out ['']
print [`""`]
will print out ["''"]
print ['""']
will print out ['""']