PyDocs

Nav

Python Runtime Services

bytearray.swapcase

  • bytearray.swapcase()
B.swapcase() -> copy of B

Return a copy of B with uppercase ASCII characters converted
to lowercase ASCII and vice versa.
1 Example
>>> b'Hello World'.swapcase()
b'hELLO wORLD'
from the Python docs
See Also
No see-alsos for builtins/bytearray.swapcase
0 Notes
No notes for bytearray.swapcase