python function that returns string in reverse code example Example: how to reverse a string in python belief = "the world is mine, hello"[::-1] print(belief)