PyDocs

Nav

Python Runtime Services

bytes.swapcase

builtins

method of bytes
  • bytes.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/bytes.swapcase
0 Notes
No notes for bytes.swapcase