in this casethe output of the code is the letter python strings are zerobasedwhich means they start with the number and proceed from there for exampleif you were to type print(mystring[ ])the output would be the letter you can also obtain range of characters from string simply provide the beginning and ending letter count separated by colon in the square brackets for exampleprint(mystring[ : ]would output the word world the output would begin with letter and end with letter (remember that the index is zero basedthe following steps demonstrate some basic tasks that you can perform using python' character-selection technique this example also appears with the downloadable source code as characters py open python file window you see an editor in which you can type the example code type the following code into the window -pressing enter after each line string "hello worldstring "python is fun!print(string [ ]print(string [ : ]print(string [: ]print(string [ :]string string [: string [: print(string print(string [: ]* the example begins by creating two strings it then demonstrates various methods for using the index on the first string notice that you can leave out the beginning or ending number in range if you want to work with the remainder of that string the next step is to combine two substrings in this casethe code combines the beginning of string with the beginning of string to create string the use of the sign to combine two strings is called concatenation it' one of the handier operators to remember when you're working with strings in an application the final step is to use python feature called repetition you use repetition to make number of copies of string or substring