data types table string methods # syntax description isnumeric(returns true if is nonempty and every character in is numeric unicode character such as digit or fraction isprintable(returns true if is empty or if every character in is considered to be printableincluding spacebut not newline isspace(returns true if is nonempty and every character in is whitespace character istitle(returns true if is nonempty title-cased stringsee also str title(returns true if str has at least one uppercaseable character and all its uppercaseable characters are uppercasesee also str islower(returns the concatenation of every item in the sequence seqwith str (which may be emptybetween each one isupper( join(seqs ljustwidthchars lower(returns copy of left-aligned in string of length width padded with spaces or optionally with char ( string of length use str rjust(to right-align and str center(to center see also str format(returns lowercased copy of ssee also str upper( maketrans(companion of str translate()see text for details partitiontreturns tuple of three strings--the part of str before the leftmost str ttand the part of after tor if isn' in returns and two empty strings use str rpartition(to partition on the rightmost occurrence of replace(tunreturns copy of with every (or maximum of if givenoccurrences of str replaced with str split(tnreturns list of strings splitting at most times on str tif isn' givensplits as many times as possibleif isn' givensplits on whitespace use str rsplit(to split from the right--this makes difference only if is given and is less than the maximum number of splits possible splitlinesfreturns the list of lines produced by splitting on line terminatorsstripping the terminators unless is true startswithxstartendreturns true if (or the start:end slice of sstarts with str or with any of the strings in tuple xotherwisereturns false see also str endswith(