dat = [1, 2, 3, 4, 5] print(dat[1:]) # [2, 3, 4, 5] print(dat[:-1]) # [1, 2, 3, 4] print(dat[1::2]) # [2, 4] print(dat[::-1]) # [5, 4, 3, 2, 1]