quence objectincluding stringslistsand tuples the only difference is that when you slice listyou get back new list the built-in ord(sfunction converts from one-character string to an integer character codechr(iconverts from the integer code back to string keep in mindthoughthat these integers are only ascii codes for text whose characters are drawn only from ascii character set in the unicode modeltext strings are really sequences of unicode code point identifying integerswhich may fall outside the -bit range of numbers reserved by ascii (more on unicode in and strings cannot be changedthey are immutable howeveryou can achieve similar effect by creating new string--by concatenatingslicingrunning formatting expressionsor using method call like replace--and then assigning the result back to the original variable name you can slice the string using [ : ]or split on the comma and index the string using split(',')[ try these interactively to see for yourself six the string " \nb\ \ dcontains the characters anewline (\ )bbinary ( hex escape \ )binary (an octal escape \ )and pass the string to the built-in len function to verify thisand print each of its character' ord results to see the actual code point (identifying numbervalues see table - for more details on escapes you should never use the string module instead of string object method calls today --it' deprecatedand its calls are removed completely in python the only valid reason for using the string module at all today is for its other toolssuch as predefined constants you might also see it appear in what is now very old and dusty python code (and books of the misty past--like the string fundamentals