there is no differencejust be sure to use matching set strings can also be saved in variablesjust like any other data here are some examples illustrating the two forms of string literalsstr "hellostr 'spamprint(str str hello spam type(str type(str you already know how to print strings you have also seen how to get string input from users recall that the input function returns whatever the user types as string object that means when you want to get stringyou can use the input in its "raw(non evaledform here' simple interaction to illustrate the pointfirstname input("please enter your name"please enter your namejohn print("hello"firstnamehello john notice how we saved the user' name with variable and then used that variable to print the name back out again so farwe have seen how to get strings as inputassign them to variablesand how to print them out that' enough to write parrot programbut not to do any serious text-based computing for thatwe need some string operations the rest of this section takes you on tour of the more important python string operations in the following sectionwe'll put these ideas to work in some example programs what kinds of things can we do with stringsfor startersremember what string isa sequence of characters one thing we might want to do is access the individual characters that make up the string in pythonthis can be done through the operation of indexing we can think of the positions in string as being numberedstarting from the left with figure illustrates with figure indexing of the string "hello bobthe string "hello bob indexing is used in string expressions to access specific character position in the string the general form for indexing is [the value of the expression determines which character is selected from the string here are some interactive indexing examples