+ 2
how do create a double quote
5 odpowiedzi
+ 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"
+ 4
could you be more specific Oscar Obasi
Do you want double quotes in your code?
In your output?
What programming language?
+ 1
that is how to double quote in a string
+ 1
+ 1
thanks