1import array as arr
2
3numbers_list = [2, 5, 62, 5, 42, 52, 48, 5]
4numbers_array = arr.array('i', numbers_list)
5
6print(numbers_array[2:5]) # 3rd to 5th
7print(numbers_array[:-5]) # beginning to 4th
8print(numbers_array[5:]) # 6th to end
9print(numbers_array[:]) # beginning to end