Answers for "python single vs double quotes"

1

python single vs double quotes

Quoting the official docs at https://docs.python.org/2.0/ref/strings.html:

In plain English: String literals can be enclosed in matching single quotes (') or double quotes (").

So there is no difference.
Posted by: Guest on August-18-2021
-2

python put double quotes in string

"What a string, \"OMG DOUBLE QUOTES IN A STRING!!!\" whoa, those are cool"
Posted by: Guest on May-25-2021
-1

python return double quotes instead of single

>>> import json
>>> List = ["A", "B"]
>>> print json.dumps(List)
["A", "B"]
Posted by: Guest on September-06-2020

Code answers related to "python single vs double quotes"

Python Answers by Framework

Browse Popular Code Answers by Language