Submitted by: Srinath M S(srinath_ms@yahoo.com)

Monday Dec 16th 2019 by Srinath M S
Article Image

Language: Web, Expertise: Intermediate - See how to reverse strings in Python without a built-in reverse method.

Python's str string objects have no built-in .reverse() method like you might expect if you're coming to Python from a different language.

str  = "devx"
print("reverse string is ", str[::-1])
Mobile Site | Full Site