Learn R Programming

pystr (version 2.0.0)

pystr_swapcase: Swap the case of a string.

Description

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

Usage

pystr_swapcase(str)

Arguments

str
A string.

Value

A string.

References

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

Examples

Run this code
pystr_swapcase("Swap Me!")

Run the code above in your browser using DataLab