libb.rotate

rotate(s)[source]

Apply rot13-like translation to string.

Rotates characters including digits and punctuation.

Parameters:

s (str) – String to rotate.

Returns:

Rotated string.

Return type:

str

Example:

>>> rotate("foobarbaz")
';^^-,{-,E'