specialized rolesand we're postponing further discussion of the last two advanced forms until let' take quick look at all the other options in turn singleand double-quoted strings are the same around python stringssingleand double-quote characters are interchangeable that isstring literals can be written enclosed in either two single or two double quotes-the two forms work the same and return the same type of object for examplethe following two strings are identicalonce coded'shrubbery'"shrubbery('shrubbery''shrubbery'the reason for supporting both is that it allows you to embed quote character of the other variety inside string without escaping it with backslash you may embed single-quote character in string enclosed in double-quote charactersand vice versa'knight" '"knight' ('knight" '"knight' "this book generally prefers to use single quotes around strings just because they are marginally easier to readexcept in cases where single quote is embedded in the string this is purely subjective style choicebut python displays strings this way too and most python programmers do the same todayso you probably should too note that the comma is important here without itpython automatically concatenates adjacent string literals in any expressionalthough it is almost as simple to add operator between them to invoke concatenation explicitly (as we'll see in wrapping this form in parentheses also allows it to span multiple lines)title "meaning 'oflifetitle 'meaning of lifeimplicit concatenation adding commas between these strings would result in tuplenot string also notice in all of these outputs that python prints strings in single quotes unless they embed one if neededyou can also embed quote characters by escaping them with backslashes'knight\' '"knight\" ("knight' "'knight" 'to understand whyyou need to know how escapes work in general escape sequences represent special characters the last example embedded quote inside string by preceding it with backslash this is representative of general pattern in stringsbackslashes are used to introduce special character codings known as escape sequences string literals