A slice starts at its first index and stops just before the second. Missing bounds extend to the start or end of the string.
filename = "notes.txt"
print(filename[:5]) # notes
print(filename[6:]) # txtIndex 5 is the dot. Ending the first slice at 5 and starting the next one at 6 leaves it out.
The parcel tag has a three-letter depot, a hyphen, and a serial number. Store the lowercase depot in depot and the serial text in serial. Keep its leading zero.