Reverse String using Python

Slicing

text = 'Hello world'
result = text[::-1]

print(result)

Leave a Comment

Cancel reply

Your email address will not be published.