like thisdear aliceeve' cat has been arrested for catnappingcat burglaryand extortion sincerelybob notice that the single quote character in eve' does not need to be escaped escaping single and double quotes is optional in multiline strings the following print(call would print identical text but doesn' use multiline stringprint('dear alice,\ \neve\' cat has been arrested for catnappingcat burglaryand extortion \ \nsincerely,\nbob'multiline comments while the hash character (#marks the beginning of comment for the rest of the linea multiline string is often used for comments that span multiple lines the following is perfectly valid python code"""this is test python program written by al sweigart al@inventwithpython com this program was designed for python not python ""def spam()"""this is multiline comment to help explain what the spam(function does ""print('hello!'indexing and slicing strings strings use indexes and slices the same way lists do you can think of the string 'helloworld!as list and each character in the string as an item with corresponding index the space and exclamation point are included in the character countso 'helloworld!is characters longfrom at index to at index