sequence = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
sequence[0:5:1] == sequence[0:5] == sequence[:5]
sequence[1:len(sequence):1] == sequence[1:len(sequence)] == sequence[1:]
sequence[0:len(sequence):2] == sequence[:len(sequence):2] == sequence[::2]
Strip all but first 5 characters - Python