+ 1
what is a double quote string?
3 Answers
+ 6
Having 2 characters to create strings helps you to avoid using extra escape "\" characters. For example, if your string contains possessive nouns or contractions, it is easier to create the string with the double quotes. On the other hand, if your intention is to print quoted text as it would appear in a book, create the text with the single quotes. If you need to do both in the same string, take your pick and you will need the escape character when the quote or double quote matches your choice for creating the string.
+ 3
print("This is a double quote string")
print('This is a quote string')
0
NJ