file handling table bytes and bytearray methods # syntax description istitle(returns true if is nonempty and title-cased isupper(returns true if has at least one uppercaseable ascii character and all its uppercaseable characters are uppercase join(seqreturns the concatenation of every bytes/bytearray in sequence seqwith (which may be emptybetween each one ljustwidthbytereturns copy of bytes/bytearray left-aligned in length width padded with spaces or optionally with the given byte use the rjust(method to right-align lower(returns an ascii-lowercased copy of bytes/bytearray partitionsepreturns tuple of three bytes objects--the part of before the leftmost bytes/bytearray sepsep itselfand the part of after sepor if sep isn' in returns and two empty bytes objects use the rpartition(method to partition on the rightmost occurrence of sep ba pop(premoves and returns the int at index position in ba ba remove(iremoves the first occurrence of int from bytearray ba replace(xynreturns copy of with every (or maximum of if givenoccurrence of bytes/bytearray replaced with ba reverse(reverses bytearray ba' bytes in-place split(xnreturns list of bytes splitting at most times on if isn' givensplits everywhere possibleif isn' givensplits on whitespace use rsplit(to split from the right splitlinesfreturns the list of lines produced by splitting on line terminatorsstripping the terminators unless is true startswithxstartendreturns true if bytes/bytearray (or the start:end slice of bstarts with bytes/bytearray or with any of the bytesbytearrays in tuple xotherwisereturns false strip(xreturns copy of with leading and trailing whitespace (or the bytes in bytes/bytearray xremovedlstrip(strips only at the startand rstrip(strips only at the end swapcase(returns copy of with uppercase ascii characters lowercased and lowercase ascii characters uppercased title(returns copy of where the first ascii letter of each word is uppercased and all other ascii letters are lowercased translatebtdreturns copy of that has no bytes from dand where each other byte is replaced by the byte-th byte from bytes bt