Bracket operator, string slices, non-negative indices I and J

SLICE = STRING[I:J]

Omitting I: the slice starts at the beginning of STRING

Omitting J: the slice goes to the end of STRING

Example:

name = "Sandy"
startSlice=name[:3]
endSlice=name[1:]
wholeSlice=name[:]
print startSlice, endSlice, wholeSlice

prints:

San andy Sandy