Python Example | Reverse a Python String

This python example code introduces how to reverse a python string.

text = "321"

text = text[::-1]

print(text)

#321