summary python string is an array of bytes demonstrating unicode characters since there is no such data type called character data type in pythona single character is string of length one string handling is one of those activities in coding that programmersuse all the time in pythonwe have numerous built-in functions in the standard library to assist you manipulate if the string has length onethen the indices start from for the preliminary character and go to - for the rightmost character negative indices may be used to count from the right end (minus onefor the rightmost character through - for the leftmost character strings are immutableso specific characters could be readbut not set substring of or more successive characters of string may be referred to by specifying starting index and the index one earlier the last character of the substring if the starting and/or ending index is left out python uses and the length of the string correspondingly python assumes indices that would be beyond an end of the string essentially say the end of the string string formatting is the way we form instructions so that python can recognize how to integrate data in the creation of strings how strings are formatted determines the presentation of this data the basis of string formatting is its use of the formatting directives logical operators return true or false values comparison operators (==!=>>=<<=compare two values any value in python equates to boolean true or false false can be equal to nonea zero of numeric type ( )an empty sequence (''()[])or an empty dictionary ({}all other values are reflected true sequencestupleslistsand strings can be added and/or multiplied by numeric type with the addition and multiplication operators (+*)correspondingly strings should be formatted with tuples and dictionaries using the format directives % % %fand % formatting flags should be used with these directives questions find the index of the first occurrence of substring in string how would you check if each word in string begins with capital letter write python program to calculate the length of string write python program to get string from given string where all occurrences of its first char have been changed to '$'except the first char itself