+ 2

how do create a double quote

1st Jul 2018, 12:24 AM
Oscar Obasi
Oscar Obasi - avatar
5 Réponses
+ 5
You could do this in one of three ways in python: 1) Use single and double quotes together: >>> print '"A word that needs quotation marks"' 2) Escape the double quotes within the string: >>> print "\"A word that needs quotation marks\"" 3) Use triple-quoted strings: >>> print """ "A word that needs quotation marks" """ Output: for all "A word that needs quotation marks"
1st Jul 2018, 12:38 AM
Agent
Agent - avatar
+ 4
could you be more specific Oscar Obasi Do you want double quotes in your code? In your output? What programming language?
1st Jul 2018, 12:32 AM
Agent
Agent - avatar
+ 1
that is how to double quote in a string
1st Jul 2018, 12:34 AM
Oscar Obasi
Oscar Obasi - avatar
1st Jul 2018, 12:34 AM
Oscar Obasi
Oscar Obasi - avatar
+ 1
thanks
1st Jul 2018, 12:39 AM
Oscar Obasi
Oscar Obasi - avatar