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