Creating strings and using quote characters in strings. : Quote : String PYTHON TUTORIALS


PYTHON TUTORIALS » String » Quote »

 

Creating strings and using quote characters in strings.


print "This is a string with "double quotes.""
print 'This is another string with "double quotes."'
print 'This is a string with 'single quotes.''
print "This is another string with 'single quotes.'"
print """This string has "double quotes" and 'single quotes'.
   You can even do multiple lines."""
print '''This string also has "double" and 'single' quotes.'''



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo String
» Quote