multi-line strings conceptuallya file is sequence of data that is stored in secondary memory (usually on disk drivefiles can contain any data typebut the easiest files to work with are those that contain text files of text have the advantage that they can be read and understood by humansand they are easily created and edited using general-purpose text editors and word processors in pythontext files can be very flexiblesince it is easy to convert back and forth between strings and other types you can think of text file as (possibly longstring that happens to be stored on disk of coursea typical file generally contains more than single line of text special character or sequence of characters is used to mark the end of each line there are numerous conventions for end-of-line markers python takes care of these different conventions for us and just uses the regular newline character (designated with \nto indicate line breaks let' take look at concrete example suppose you type the following lines into text editor exactly as shown herehello world goodbye when stored to fileyou get this sequence of characters hello\nworld\ \ngoodbye \ notice that the blank line becomes bare newline in the resulting file/string by the waythis is really no different than when we embed newline characters into output stringsto produce multiple lines of output with single print statement here is the example from above printed interactivelyprint("hello\nworld\ \ngoodbye \ "hello world goodbye remember if you simply evaluate string containing newline characters in the shellyou will just get the embedded newline representation back again "hello\nworld\ \ngoodbye \ 'hello\nworld\ \ngoodbye \nit' only when string is printed that the special characters affect how the string is displayed