Python (2.x) list / sublist selection -1 weirdness May 4, 2023 by Tarik In list[first:last], last is not included. The 10th element is ls[9], in ls[0:10] there isn’t ls[10].