operator len(for in meaning concatenation repetition indexing slicing length iteration through characters table python string operations indexing and slicing are useful operations for chopping strings into smaller pieces the string data type also supports operations for putting strings together two handy operators are concatenation (+and repetition (*concatenation builds string by "gluingtwo strings together repetition builds string by multiple concatenations of string with itself another useful function is lenwhich tells how many characters are in string finallysince strings are sequences of charactersyou can iterate through the characters using python for loop here are some examples of various string operations"spam"eggs'spameggs"spam"and"eggs'spamandeggs "spam'spamspamspam"spam 'spamspamspamspamspam( "spam"("eggs 'spamspamspameggseggseggseggseggslen("spam" len("spamandeggs" for ch in "spam!"print(chend=" these basic string operations are summarized in table simple string processing now that you have an idea what various string operations can dowe're ready to write some programs our first example is program to compute the usernames for computer system