DEV Community

Discussion on: How to Reverse a String

Collapse
gagandureja profile image
Gagan

python

print(str[::-1])