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])