how to slice a strings just after a substring code example Example: how to slice a string in python a = 'hello' print(a[1:2])