Creating strings and using quote characters in strings. : Quote « String « Python Tutorial






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.'''








5.21.Quote
5.21.1.Single-Quoted Strings and Escaping Quotes
5.21.2.Triple Quotes
5.21.3.Creating strings and using quote characters in strings.