Swap the case of a string.

Description

Return a copy of the string with uppercase characters converted to lowercase and vice versa.

Usage

1

Arguments

str

A string.

Value

A string.

References

https://docs.python.org/3/library/stdtypes.html#str.swapcase

Examples

1
pystr_swapcase("Swap Me!")

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.