Slices
Slicing can be performed similarly to lists.
It should be remembered that by taking an element by index or by slice (
slice
), we do not change the tuple in any way, we simply copied part of it for further use (for example, for printing, some calculations, etc. .p.).
Slice syntax
my_tuple[start:stop:step] # start, stop and step