Run
x = 'abcdefghijklmnopq' x_slice = slice(2, 7) output = x[x_slice] print(output)
Output