Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

same quotes in a quotes

>>> 'spam eggs'  # single quotes
'spam eggs'
>>> 'doesn't'  # use ' to escape the single quote...
"doesn't"
>>> "doesn't"  # ...or use double quotes instead
"doesn't"
>>> '"Yes," they said.'
'"Yes," they said.'
>>> ""Yes," they said."
'"Yes," they said.'
>>> '"Isn't," they said.'
'"Isn't," they said.'
Source by docs.python.org #
 
PREVIOUS NEXT
Tagged: #quotes #quotes
ADD COMMENT
Topic
Name
1+4 =