Reverse String

Reverse the order of characters in a string, creating a mirror image of the original text.

Code

General
str[::-1]

Parameters

The string to reverse

Server

More Python Snippets