search char in python code example
Example 1: reverse string in python
'hello world'[::-1]
'dlrow olleh'
Example 2: print line in python
# hello world in python
print("Hello World!")
'hello world'[::-1]
'dlrow olleh'
# hello world in python
print("Hello World!")