►
Run
start = 2 stop = 9 step = 2 slice_object = slice(start, stop, step) x = 'abcdefghijklm' print(x[slice_object])
Output