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