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