get left string python code example Example: python left string string = "hello world!" print(string[0:5])