get string in left and in right of a given string python code example Example: python left string string = "hello world!" print(string[0:5])