B.capitalize() -> copy of B Return a copy of B with only its first character capitalized (ASCII) and the rest lower-cased.
builtins/bytearray.capitalize
bytearray.capitalize