string manipulation as you knowstrings can be created in python by wrapping sequence of characters in single or double quotes multiline strings can easily be created using three quote charactersand multiple hardcoded strings can be concatenated together by placing them side by side here are some examplesa "hellob 'worldc ''' multiple line string'' """more multiple"" ("three "strings "together"that last string is automatically composed into single string by the interpreter it is also possible to concatenate strings using the operator (as in "hello "world"of coursestrings don' have to be hardcoded they can also come from various outside sources such as text filesuser inputor encoded on the network the automatic concatenation of adjacent strings can make for some hilarious bugs when comma is missed it ishoweverextremely useful when long string needs to be placed inside function call without exceeding the character line-length limit suggested by the python style guide like other sequencesstrings can be iterated over (character by character)indexedslicedor concatenated the syntax is the same as for lists the str class has numerous methods on it to make manipulating strings easier the dir and help commands in the python interpreter can tell us how to use all of themwe'll consider some of the more common ones directly several boolean convenience methods help us identify whether or not the characters in string match certain pattern here is summary of these methods most of thesesuch as isalphaisupper/islowerand startswith/endswith have obvious interpretations the isspace method is also fairly obviousbut remember that all whitespace characters (including tabnewlineare considerednot just the space character