in the string "go spot gowe will refer to this type of sequence iteration as iteration by item note that it is only possible to process the characters one at time from left to right check your understanding strings- - how many times is the word hello printed by the following statementss "python rocksfor ch in sprint("hello"ans yesthere are charactersincluding the blank strings- - how many times is the word hello printed by the following statementss "python rocksfor ch in [ : ]print("hello"ans yesthe blank is part of the sequence returned by slice string slices python slice string syntax isstr_object[start_pos:end_pos:stepthe slicing starts with the start_pos index (includedand ends at end_pos index (excludedthe step parameter is used to specify the steps to take from start to end index python string slicing always follows this rules[:is[ := for any index 'iall these parameters are optional start_pos default value is the end_pos default value is the length of string and step default value is let' look at some simple examples of string slice function to create substring 'helloworldprint( [:]print( [::]