Slice the String defmy_function(x): returnx[::-1] mytxt =my_function("I wonder how this text looks like backwards") print(mytxt) Return the backward String Return the String defmy_function(x): returnx[::-1] mytxt =my_function("I wonder how this text looks like backwards") ...
JavaScript Array reverse()❮ Previous JavaScript Array Reference Next ❯ Example const fruits = ["Banana", "Orange", "Apple", "Mango"]; fruits.reverse(); Try it Yourself » DescriptionThe reverse() method reverses the order of the elements in an array....