So - why is the end index one more than the last index that we want to include?
This has me stumped, I guess I could just accept it and move on but it bothers me!
In the example given:
letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g'] sublist = letters[1:6] print(sublist)
['b', 'c', 'd', 'e', 'f']
But why 6 when ‘g’ is in the sixth index?